[Libwebsockets] FW: pollfd->revents == 0
Tyrone.Bekiares at motorolasolutions.com
Wed Jul 23 22:37:16 CEST 2014
Just to add some additional detail, I'm linking against the 1.0.1h version of OpenSSL.
If I run the server without "-s", it works fine. I only see this error in SSL mode. I'm using the included demo cert and key.
wsi->mode=LWS_CONNMODE_SERVER_LISTENER, but pollfd->revents=0, causing the crash.
Any idea what could cause this?
From: Bekiares Tyrone-CTB041
Sent: Wednesday, July 23, 2014 12:40 PM
To: 'libwebsockets at ml.libwebsockets.org'
Subject: FW: pollfd->revents == 0
I'm using libwebsockets 1.3, compiled using VS2013Update2 for Win32, run under Win7/64. I am connecting from Chrome 36 via SSL to the included test-server app. I am serving out a .html page which references a few .js and .css files.
The first 2 files are transferred properly, the third crashes in lws_server_socket_service_ssl() because new_wsi is NULL. If I trace the crash, lws_server_socket_service is not creating a new new_wsi prior to calling lws_server_socket_service_ssl because (pollfd->revents & LWS_POLLIN) == 0 when lws_server_socket_service is called.
There does not appear to be a check for pollfd->revents==0 inside libwebsocket_service_fd (which calls lws_server_socket_service). Should there be? Is pollfd->revents==0 expected?
Has anyone else experienced this?
More information about the Libwebsockets