revert 622d9f2 ssl pending handcrank
authorAndy Green <andy@warmcat.com>
Tue, 5 Apr 2016 11:43:07 +0000 (19:43 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 5 Apr 2016 11:43:07 +0000 (19:43 +0800)
https://github.com/warmcat/libwebsockets/issues/483

Signed-off-by: Andy Green <andy@warmcat.com>
lib/service.c

index 8ed2669..3451e39 100644 (file)
@@ -742,9 +742,6 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int t
                n = lws_server_socket_service(context, wsi, pollfd);
                if (n) /* closed by above */
                        return 1;
-               pending = lws_ssl_pending(wsi);
-               if (pending)
-                       goto handle_pending;
                goto handled;
 
        case LWSCM_WS_SERVING:
@@ -954,7 +951,6 @@ drain:
 
                pending = lws_ssl_pending(wsi);
                if (pending) {
-handle_pending:
                        pending = pending > LWS_MAX_SOCKET_IO_BUF ?
                                        LWS_MAX_SOCKET_IO_BUF : pending;
                        goto read;