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

On WCE close the connection immediately

This commit is contained in:
unknown 2016-02-29 14:28:37 +01:00
parent 4478d1300e
commit 0231ccab63

View file

@ -344,6 +344,9 @@ just_kill_connection:
if (n)
lwsl_debug("closing: shutdown ret %d\n", LWS_ERRNO);
// This causes problems with disconnection when the events are half closing connection
// FD_READ | FD_CLOSE (33)
#ifndef _WIN32_WCE
/* libuv: no event available to guarantee completion */
if (!LWS_LIBUV_ENABLED(context)) {
@ -353,6 +356,7 @@ just_kill_connection:
context->timeout_secs);
return;
}
#endif
}
#endif