Skip to content
Snippets Groups Projects
Commit 4bca6cd3 authored by Andy Green's avatar Andy Green
Browse files

close also enable pollout processing for post send close state


This should solve the 100% cpu at close problem reported by Bruce Perens

Signed-off-by: default avatarAndy Green <andy.green@linaro.org>
parent 82eccf76
No related branches found
No related tags found
No related merge requests found
...@@ -499,6 +499,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context, ...@@ -499,6 +499,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
(wsi->state == WSI_STATE_ESTABLISHED || (wsi->state == WSI_STATE_ESTABLISHED ||
wsi->state == WSI_STATE_HTTP2_ESTABLISHED || wsi->state == WSI_STATE_HTTP2_ESTABLISHED ||
wsi->state == WSI_STATE_HTTP2_ESTABLISHED_PRE_SETTINGS || wsi->state == WSI_STATE_HTTP2_ESTABLISHED_PRE_SETTINGS ||
wsi->state == WSI_STATE_RETURNED_CLOSE_ALREADY ||
wsi->state == WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE) && wsi->state == WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE) &&
lws_handle_POLLOUT_event(context, wsi, pollfd)) { lws_handle_POLLOUT_event(context, wsi, pollfd)) {
lwsl_info("libwebsocket_service_fd: closing\n"); lwsl_info("libwebsocket_service_fd: closing\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment