mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
close cover flush stored send with timeout
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2a5774edca
commit
9f02c5dc24
2 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ libwebsocket_close_and_free_session(struct libwebsocket_context *context,
|
|||
if (wsi->truncated_send_len) {
|
||||
lwsl_info("wsi %p entering WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE\n", wsi);
|
||||
wsi->state = WSI_STATE_FLUSHING_STORED_SEND_BEFORE_CLOSE;
|
||||
libwebsocket_set_timeout(wsi, PENDING_FLUSH_STORED_SEND_BEFORE_CLOSE, 5);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -1167,6 +1167,7 @@ enum pending_timeout {
|
|||
PENDING_TIMEOUT_SSL_ACCEPT,
|
||||
PENDING_TIMEOUT_HTTP_CONTENT,
|
||||
PENDING_TIMEOUT_AWAITING_CLIENT_HS_SEND,
|
||||
PENDING_FLUSH_STORED_SEND_BEFORE_CLOSE,
|
||||
};
|
||||
|
||||
LWS_VISIBLE LWS_EXTERN void
|
||||
|
|
Loading…
Add table
Reference in a new issue