summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-06-20 12:30:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-06-21 00:07:13 +0200
commitc0c40ab075cdf86424dfe346a70a31b08dc651da (patch)
treeb118132d4d73fa05018ad398f7a62fa7066b2871 /lib/http2.c
parent972bdffb9f675e44abb85d93fd26507d9602d90d (diff)
downloadcurl-c0c40ab075cdf86424dfe346a70a31b08dc651da.tar.gz
http2: don't call stream-close on already closed streams
Closes #4055
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 6724eeeb0..b016bac92 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1758,11 +1758,10 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
return retlen;
}
- /* If stream is closed, return 0 to signal the http routine to close
+ /* If this stream is closed, return 0 to signal the http routine to close
the connection */
- if(stream->closed) {
- return http2_handle_stream_close(conn, data, stream, err);
- }
+ if(stream->closed)
+ return 0;
*err = CURLE_AGAIN;
H2BUGF(infof(data, "http2_recv returns AGAIN for stream %u\n",
stream->stream_id));