From a2a4b0b08449b057a4fd30857b7373a925ce164d Mon Sep 17 00:00:00 2001 From: Thomas Greenslade Date: Mon, 12 Oct 2015 16:06:26 +0800 Subject: [PATCH] additional https post fix https://github.com/warmcat/libwebsockets/pull/298#issuecomment-147316562 --- lib/lws-plat-unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lws-plat-unix.c b/lib/lws-plat-unix.c index be642aa..bc13380 100644 --- a/lib/lws-plat-unix.c +++ b/lib/lws-plat-unix.c @@ -148,9 +148,9 @@ lws_plat_service(struct libwebsocket_context *context, int timeout_ms) wsi = context->pending_read_list; while (wsi) { wsi_next = wsi->pending_read_list_next; - context->fds[wsi->sock].revents |= - context->fds[wsi->sock].events & POLLIN; - if (context->fds[wsi->sock].revents & POLLIN) { + context->fds[wsi->position_in_fds_table].revents |= + context->fds[wsi->position_in_fds_table].events & POLLIN; + if (context->fds[wsi->position_in_fds_table].revents & POLLIN) { /* * he's going to get serviced now, take him off the * list of guys with buffered SSL. If he still has some -- 2.7.4