diff options
Diffstat (limited to 'tests/websockets.c')
-rw-r--r-- | tests/websockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/websockets.c b/tests/websockets.c index 57549e94..59acbd69 100644 --- a/tests/websockets.c +++ b/tests/websockets.c @@ -50,7 +50,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); } |