mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
h2: extend network stream timeout during body processing
This commit is contained in:
parent
6072829df6
commit
0c55e5ad4c
1 changed files with 7 additions and 2 deletions
|
@ -715,10 +715,10 @@ lws_h2_parse_frame_header(struct lws *wsi)
|
|||
}
|
||||
|
||||
/* let the network wsi live a bit longer if subs are active */
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE, 10);
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE, 31);
|
||||
|
||||
/* let the network wsi live a bit longer if subs are active */
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE, 10);
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE, 31);
|
||||
|
||||
if (h2n->sid)
|
||||
h2n->swsi = lws_h2_wsi_from_id(wsi, h2n->sid);
|
||||
|
@ -1467,6 +1467,11 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,
|
|||
|
||||
case LWS_H2_FRAME_TYPE_DATA:
|
||||
//lwsl_notice("incoming LWS_H2_FRAME_TYPE_DATA content\n");
|
||||
|
||||
/* let the network wsi live a bit longer if subs are active...
|
||||
* our frame may take a long time to chew through */
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE, 31);
|
||||
|
||||
if (!h2n->swsi)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue