aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-04 10:14:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 08:57:18 +0200
commit70b5b698b0019619efcd51e142b5144792f8863f (patch)
treec2143e3ebbe20eebbe10a2f8800a8a79e7ecbb05 /lib
parenta28734be097c1e3eebf15379ff3eb7b80e5cf867 (diff)
http2: remove the closed check in http2_recv
With the "drained" functionality we can get here slightly asynchronously so the stream have have been closed but there is pending data left to read.
Diffstat (limited to 'lib')
-rw-r--r--lib/http2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 49b8e559e..49e9c7e68 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -768,12 +768,15 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
(void)sockindex; /* we always do HTTP2 on sockindex 0 */
+#if 0
if(stream->closed) {
/* Reset to FALSE to prevent infinite loop in readwrite_data
function. */
stream->closed = FALSE;
+ DEBUGF(infof(data, "http2_recv2 stream found closed?\n"));
return 0;
}
+#endif
/* Nullify here because we call nghttp2_session_send() and they
might refer to the old buffer. */