From 5a4f3ae7d0939cb5e0e70da5b95d3221362e5648 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 9 Mar 2013 09:09:46 +0800 Subject: [PATCH] POLLOUT during wait for server response not an error Signed-off-by: Andy Green --- lib/client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/client.c b/lib/client.c index 3da932692..cd7911989 100644 --- a/lib/client.c +++ b/lib/client.c @@ -261,10 +261,8 @@ int lws_client_socket_service(struct libwebsocket_context *context, goto bail3; } - if (!(pollfd->revents & POLLIN)) { - lwsl_warn("server reply no POLLIN\n"); - goto bail3; - } + if (!(pollfd->revents & POLLIN)) + break; /* interpret the server response */