]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: revert call the handle-closed function correctly on closed stream
authorArtur Sinila <freesoftware@logarithmus.dev>
Sun, 1 Aug 2021 22:34:14 +0000 (01:34 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Aug 2021 06:44:52 +0000 (08:44 +0200)
Reverts 252790c5335a221

Assisted-by: Gergely Nagy
Fixes #7400
Closes #7525

lib/http2.c

index 60e0143c1544cb300251aa8f39f74c502d12a856..39495679962d30af4ae8a8847eb14e0d259f1d96 100644 (file)
@@ -1624,10 +1624,6 @@ static ssize_t http2_recv(struct Curl_easy *data, int sockindex,
     return -1;
   }
 
-  if(stream->closed)
-    /* closed overrides paused */
-    return http2_handle_stream_close(conn, data, stream, err);
-
   /* Nullify here because we call nghttp2_session_send() and they
      might refer to the old buffer. */
   stream->upload_mem = NULL;