mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ss-h1: close bound wsi when state handler requests ss destroy
This commit is contained in:
parent
2e1969187d
commit
1a756ca178
1 changed files with 4 additions and 4 deletions
|
@ -455,14 +455,14 @@ malformed:
|
|||
wsi->http.writeable_len = h->writeable_len = 0;
|
||||
lws_sul_cancel(&h->sul_timeout);
|
||||
|
||||
h->txn_ok = 1;
|
||||
|
||||
if (h->u.http.good_respcode) {
|
||||
if (lws_ss_event_helper(h, LWSSSCS_QOS_ACK_REMOTE))
|
||||
break;
|
||||
return -1;
|
||||
} else
|
||||
if (lws_ss_event_helper(h, LWSSSCS_QOS_NACK_REMOTE))
|
||||
break;
|
||||
|
||||
h->txn_ok = 1;
|
||||
return -1;
|
||||
|
||||
//bad = status != 200;
|
||||
lws_cancel_service(lws_get_context(wsi)); /* abort poll wait */
|
||||
|
|
Loading…
Add table
Reference in a new issue