1
0
Fork 0
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:
Andy Green 2020-12-15 16:05:37 +00:00
parent cdbd50a2e6
commit 36de3d8300

View file

@ -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);