libuv when in use skip shutdown close phase
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
442e1c850d
commit
ee699c0036
1 changed files with 9 additions and 5 deletions
|
@ -337,11 +337,15 @@ just_kill_connection:
|
|||
if (n)
|
||||
lwsl_debug("closing: shutdown ret %d\n", LWS_ERRNO);
|
||||
|
||||
lws_change_pollfd(wsi, LWS_POLLOUT, LWS_POLLIN);
|
||||
wsi->state = LWSS_SHUTDOWN;
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_SHUTDOWN_FLUSH,
|
||||
context->timeout_secs);
|
||||
return;
|
||||
/* libuv: no event available to guarantee completion */
|
||||
if (!LWS_LIBUV_ENABLED(context)) {
|
||||
|
||||
lws_change_pollfd(wsi, LWS_POLLOUT, LWS_POLLIN);
|
||||
wsi->state = LWSS_SHUTDOWN;
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_SHUTDOWN_FLUSH,
|
||||
context->timeout_secs);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue