mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ss: http: if not retrying move to idle state
This commit is contained in:
parent
5a937fa830
commit
c2609f6d7b
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
||||||
if (h->policy && !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) &&
|
if (h->policy && !(h->policy->flags & LWSSSPOLF_OPPORTUNISTIC) &&
|
||||||
!h->txn_ok && !wsi->context->being_destroyed)
|
!h->txn_ok && !wsi->context->being_destroyed)
|
||||||
lws_ss_backoff(h);
|
lws_ss_backoff(h);
|
||||||
|
else
|
||||||
|
h->seqstate = SSSEQ_IDLE;
|
||||||
/* already disconnected, no action for DISCONNECT_ME */
|
/* already disconnected, no action for DISCONNECT_ME */
|
||||||
if (lws_ss_event_helper(h, LWSSSCS_DISCONNECTED) ==
|
if (lws_ss_event_helper(h, LWSSSCS_DISCONNECTED) ==
|
||||||
LWSSSSRET_DESTROY_ME)
|
LWSSSSRET_DESTROY_ME)
|
||||||
|
|
Loading…
Add table
Reference in a new issue