diff options
| author | 2009-08-09 20:29:33 +0200 | |
|---|---|---|
| committer | 2009-08-09 20:29:33 +0200 | |
| commit | 67743b7bff776a176a0f4149f74dcf53a0c7192e (patch) | |
| tree | 4047f96225c80fe938c529709d511d43666edee8 | |
| parent | 98a6295df6270145c995fa651eda8a2a3a015984 (diff) | |
| download | usbmuxd-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.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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; | 
