]> granicus.if.org Git - curl/commitdiff
http2: remove the closed check in http2_recv
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 08:14:42 +0000 (10:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2015 06:57:18 +0000 (08:57 +0200)
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.

lib/http2.c

index 49b8e559eff14cffe66d33f84b6bc2df9911135f..49e9c7e6890bbeb6bfc10bbfc7ac319e362da382 100644 (file)
@@ -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. */