aboutsummaryrefslogtreecommitdiff
path: root/tests/websockets_gethostbyname.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/websockets_gethostbyname.c')
-rw-r--r--tests/websockets_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/websockets_gethostbyname.c b/tests/websockets_gethostbyname.c
index 6b8777f1..cba2c635 100644
--- a/tests/websockets_gethostbyname.c
+++ b/tests/websockets_gethostbyname.c
@@ -35,7 +35,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);
}