mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ss: h2: dont report nwsi close
SS protocol doesn't want to hear about the nwsi closing after any streams on the protocol closed.
This commit is contained in:
parent
cdbd50a2e6
commit
36de3d8300
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ secstream_h2(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
}
|
||||
return n;
|
||||
|
||||
case LWS_CALLBACK_CLOSED_CLIENT_HTTP:
|
||||
if (lws_get_network_wsi(wsi) == wsi)
|
||||
return 0;
|
||||
break;
|
||||
|
||||
case LWS_CALLBACK_COMPLETED_CLIENT_HTTP:
|
||||
// lwsl_err("%s: h2 COMPLETED_CLIENT_HTTP\n", __func__);
|
||||
r = h->info.rx(ss_to_userobj(h), NULL, 0, LWSSS_FLAG_EOM);
|
||||
|
|
Loading…
Add table
Reference in a new issue