mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
treat write failed as permanently fatal
This commit is contained in:
parent
1e7f5b5b2b
commit
e7c7794cd4
1 changed files with 3 additions and 1 deletions
|
@ -1452,7 +1452,9 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd,
|
|||
lws_handle_POLLOUT_event(wsi, pollfd)) {
|
||||
if (wsi->state == LWSS_RETURNED_CLOSE_ALREADY)
|
||||
wsi->state = LWSS_FLUSHING_SEND_BEFORE_CLOSE;
|
||||
lwsl_info("lws_service_fd: closing\n");
|
||||
lwsl_notice("lws_service_fd: closing\n");
|
||||
/* the write failed... it's had it */
|
||||
wsi->socket_is_permanently_unusable = 1;
|
||||
goto close_and_handled;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue