ssl fix service problem in MORE_SERVICE case
authorChristian Schüldt <crilla@kth.se>
Thu, 9 Oct 2014 00:37:12 +0000 (08:37 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 9 Oct 2014 00:37:12 +0000 (08:37 +0800)
Signed-off-by: Christian Schüldt <crilla@kth.se>
lib/server.c

index 9932b25..4c2abac 100644 (file)
@@ -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))