diff options
author | Aleksander Guryanov <caiiiycuk@gmail.com> | 2013-01-30 22:05:11 +0700 |
---|---|---|
committer | Aleksander Guryanov <caiiiycuk@gmail.com> | 2013-01-30 22:05:11 +0700 |
commit | 001806e94750f1f413d7d58aa63cf98f2482c008 (patch) | |
tree | 873c3b55d77688511185a55812f8f6f9937dbf50 /tests/websockets_bi_bigdata.c | |
parent | 3f261d13687a0a93adb262f4395b4b57e3d61335 (diff) |
Fix '-1' problem in recv
Diffstat (limited to 'tests/websockets_bi_bigdata.c')
-rw-r--r-- | tests/websockets_bi_bigdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/websockets_bi_bigdata.c b/tests/websockets_bi_bigdata.c index 5db2c951..2039f83c 100644 --- a/tests/websockets_bi_bigdata.c +++ b/tests/websockets_bi_bigdata.c @@ -37,7 +37,7 @@ unsigned int get_all_buf(int sock, char* output, unsigned int maxsize) } } - if(n < 0) { + if(n < 0 && errno != EAGAIN && errno != EWOULDBLOCK) { fprintf(stderr, "error in get_all_buf!"); exit(EXIT_FAILURE); } |