mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58:48 -05:00
http2: expire a timeout at end of stream
To make sure that transfer is being dealt with. Streams without Content-Length need a final read to notice the end-of-stream state. Reported-by: Tom van der Woerdt Fixes #4496
This commit is contained in:
parent
1d642f0550
commit
59041f052a
@ -848,6 +848,7 @@ static int on_stream_close(nghttp2_session *session, int32_t stream_id,
|
||||
stream->closed = TRUE;
|
||||
httpc = &conn->proto.httpc;
|
||||
drain_this(data_s, httpc);
|
||||
Curl_expire(data_s, 0, EXPIRE_RUN_NOW);
|
||||
httpc->error_code = error_code;
|
||||
|
||||
/* remove the entry from the hash as the stream is now gone */
|
||||
|
Loading…
Reference in New Issue
Block a user