mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: http: if not retrying move to idle state
This commit is contained in:
parent
9b24e29b9a
commit
44ead6a42c
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
if (h->policy && !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) &&
|
||||
!h->txn_ok && !wsi->context->being_destroyed)
|
||||
lws_ss_backoff(h);
|
||||
else
|
||||
h->seqstate = SSSEQ_IDLE;
|
||||
|
||||
if (lws_ss_event_helper(h, LWSSSCS_DISCONNECTED))
|
||||
lws_ss_destroy(&h);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue