summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-08-09 20:29:33 +0200
committerGravatar Nikias Bassen2009-08-09 20:29:33 +0200
commit67743b7bff776a176a0f4149f74dcf53a0c7192e (patch)
tree4047f96225c80fe938c529709d511d43666edee8
parent98a6295df6270145c995fa651eda8a2a3a015984 (diff)
downloadusbmuxd-67743b7bff776a176a0f4149f74dcf53a0c7192e.tar.gz
usbmuxd-67743b7bff776a176a0f4149f74dcf53a0c7192e.tar.bz2
Reduce buffer size to prevent connection to freak out.
There's a problem with packets larger than 65535 bytes, I suppose this has something to do with the length16 field in the usbmux_tcp_header.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c567a66..19649b1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -431,7 +431,7 @@ static void *usbmuxd_client_handler_thread(void *arg)
struct client_data *cdata;
int result;
char *cursor;
- char buffer[65536];
+ char buffer[32740];
ssize_t len;
ssize_t maxlen = sizeof(buffer);
uint32_t wlen;