1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

h2: just log nwsi close and pass thru

User reports problems with the close / retry flow not happening if we don't
pass thru the nwsi close... it may be happening before the sid1 migration.

Just log it and don't end the handling before the passthru.  Logging it
because there was a reason for the change to not passing it through...
This commit is contained in:
Andy Green 2021-04-21 05:14:26 +01:00
parent a0bebb9f67
commit afb77240ad

View file

@ -66,8 +66,13 @@ 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)
/*
* Only allow the wsi that the handle believes is representing
* him to report closure up to h1
*/
if (!h || h->wsi != wsi)
return 0;
break;
case LWS_CALLBACK_COMPLETED_CLIENT_HTTP: