From fde9379e412a3fcf58f9b84386175643299e88a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Sch=C3=83=C2=BCldt?= Date: Thu, 9 Oct 2014 08:37:12 +0800 Subject: [PATCH] ssl fix service problem in MORE_SERVICE case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian Schüldt --- lib/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/server.c b/lib/server.c index 9932b25e..4c2abac1 100644 --- a/lib/server.c +++ b/lib/server.c @@ -684,7 +684,7 @@ int lws_server_socket_service(struct libwebsocket_context *context, LWS_CLOSE_STATUS_NOSTATUS); return 0; case LWS_SSL_CAPABLE_MORE_SERVICE: - break; + goto try_pollout; } /* just ignore incoming if waiting for close */ @@ -702,6 +702,7 @@ int lws_server_socket_service(struct libwebsocket_context *context, } } +try_pollout: /* this handles POLLOUT for http serving fragments */ if (!(pollfd->revents & LWS_POLLOUT))