1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Fixed formatting and corrected pending double-check.

This commit is contained in:
Andrew Canaday 2015-12-02 15:26:10 -05:00
parent 08ebfa5237
commit 9a6d16d88c

View file

@ -490,11 +490,12 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
n = lws_server_socket_service(context, wsi, pollfd);
if (n < 0)
goto close_and_handled;
if( lws_ssl_pending(wsi) ) {
pending = lws_ssl_pending(wsi);
if( pending ) {
goto handle_pending;
}
else {
goto handled;
goto handled;
};
case LWS_CONNMODE_WS_SERVING:
@ -590,8 +591,8 @@ drain:
eff_buf.token_len = 0;
} while (more);
handle_pending:
pending = lws_ssl_pending(wsi);
handle_pending:
if (pending) {
pending = pending > sizeof(context->service_buffer)?
sizeof(context->service_buffer):pending;