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

ah: drop on LONG_POLL and allow dropping client ah early

This commit is contained in:
Andy Green 2019-11-06 21:34:14 +00:00
parent 34eca205e5
commit c8de9bbc2d
2 changed files with 5 additions and 2 deletions

View file

@ -2532,6 +2532,8 @@ lws_h2_client_stream_long_poll_rxonly(struct lws *wsi)
wsi->h2.long_poll = 1;
wsi->h2.send_END_STREAM = 1;
lws_header_table_detach(wsi, 0);
lws_callback_on_writable(wsi);
return 0;

View file

@ -637,10 +637,11 @@ lws_http_transaction_completed_client(struct lws *wsi)
n = _lws_generic_transaction_completed_active_conn(wsi);
_lws_header_table_reset(wsi->http.ah);
if (wsi->http.ah)
_lws_header_table_reset(wsi->http.ah);
wsi->http.rx_content_length = 0;
if (!n)
if (!n || !wsi->http.ah)
return 0;
/*