summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-10-17 14:25:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-10-18 23:23:43 +0200
commit59041f052a5209a3aebb146c01b689424f9f7b04 (patch)
tree5440e1dc937016ac49420c7432868be40b67773a /lib/http2.c
parent1d642f055021fff8a838c5308931ef907cef2ec9 (diff)
downloadcurl-59041f052a5209a3aebb146c01b689424f9f7b04.tar.gz
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
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index b5b831b56..c0f29f83e 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -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 */