[Libwebsockets] test-server.exe ends with WSAEINVAL error

Jan Bezget jan.bezget at uni-mb.si
Wed Feb 13 20:56:48 CET 2013


I've compiled the 0f134590481ae608777ec92709f2565dd4f8e25e commit on
windows 7, using g++ (tdm-1) 4.7.1. CMake options: CodeBlocks Makefiles,
with latency, without SSL, Debug build.

I have tried running the test-server.exe and test-server-extpoll.exe
example. The libwebsocket_service returned -1. I called WSAGetLastError()
immediately after which returned 10022 (WSAEINVAL, invalid argument).

It seems the http callback _does_ get called with reasons
LWS_CALLBACK_PROTOCOL_INIT and LWS_CALLBACK_ADD_POLL_FD prior to the error
as well as LWS_CALLBACK_DEL_POLL_FD and LWS_CALLBACK_PROTOCOL_DESTROY after
the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20130213/b97fc355/attachment.html>


More information about the Libwebsockets mailing list