Skip to content

Commit

Permalink
tls shudown: avoid spin
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Jun 14, 2022
1 parent 31ff36e commit 2760c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core-net/close.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,10 @@ __lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason,
case LWS_SSL_CAPABLE_MORE_SERVICE_READ:
case LWS_SSL_CAPABLE_MORE_SERVICE_WRITE:
case LWS_SSL_CAPABLE_MORE_SERVICE:
if (wsi->lsp_channel++ == 8) {
lwsl_wsi_info(wsi, "avoiding shutdown spin");
lwsi_set_state(wsi, LRS_SHUTDOWN);
}
break;
}
} else
Expand Down

0 comments on commit 2760c9b

Please sign in to comment.