diff options
author | Nikias Bassen | 2009-04-13 14:22:24 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-04-13 14:22:24 +0200 |
commit | 9932dadfc7ddc65ccb3d2988df1a6dcc9cf536c5 (patch) | |
tree | 5e36527dc25154182889bd42bada7590f54a9c9d /iphone.c | |
parent | d6e0cb81973e99aa61c4b36e3e4a4dcd475c1e59 (diff) | |
download | usbmuxd-9932dadfc7ddc65ccb3d2988df1a6dcc9cf536c5.tar.gz usbmuxd-9932dadfc7ddc65ccb3d2988df1a6dcc9cf536c5.tar.bz2 |
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.
Diffstat (limited to 'iphone.c')
-rw-r--r-- | iphone.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |