From 9932dadfc7ddc65ccb3d2988df1a6dcc9cf536c5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 13 Apr 2009 14:22:24 +0200 Subject: This _should_ fix a race condition that happens when a client is about to cleanup the stuff that is used by another client that is about to set up a new connection. Increased timeout in sock_stuff from 10 to 20 seconds and decreased the pullbulk recv timeout from 5 to 3 seconds. --- iphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iphone.c') diff --git a/iphone.c b/iphone.c index 6be85e6..662432b 100644 --- a/iphone.c +++ b/iphone.c @@ -1086,7 +1086,7 @@ int iphone_mux_pullbulk(iphone_device_t phone) // start the cursor off just ahead of the leftover. char* cursor = &phone->usbReceive.buffer[phone->usbReceive.leftover]; // pull in content, note that the amount we can pull is capacity minus leftover - int readlen = recv_from_phone_timeout(phone, cursor, phone->usbReceive.capacity - phone->usbReceive.leftover, 5000); + int readlen = recv_from_phone_timeout(phone, cursor, phone->usbReceive.capacity - phone->usbReceive.leftover, 3000); if (readlen < 0) { res = readlen; //fprintf(stderr, "recv_from_phone_timeout gave us an error.\n"); -- cgit v1.1-32-gdbae