I am seeing strange behavior while using libwebsocket. As long as I keep the total number of simultaneous incoming websockets under 64 it works perfectly.
However the moment there is one more incoming request "WSAWaitForMultipleEvents" returns with WSA_WAIT_FAILED and GetLastError reports the error as 87.
my callback simply returns 0.