gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 183/222: http2_recv: a closed stream trumps pause state


From: gnunet
Subject: [gnurl] 183/222: http2_recv: a closed stream trumps pause state
Date: Thu, 07 Nov 2019 00:11:19 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 95a4cfd88820452a5e5da5b64e46b22bceac963f
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Oct 18 17:27:21 2019 +0200

    http2_recv: a closed stream trumps pause state
    
    ... and thus should return 0, not EAGAIN.
    
    Reported-by: Tom van der Woerdt
    Fixes #4496
    Closes #4505
---
 lib/http2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/http2.c b/lib/http2.c
index c0f29f83e..bae938811 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1663,6 +1663,9 @@ static ssize_t http2_recv(struct connectdata *conn, int 
sockindex,
        socket is not read.  But it seems that usually streams are
        notified with its drain property, and socket is read again
        quickly. */
+    if(stream->closed)
+      /* closed overrides paused */
+      return 0;
     H2BUGF(infof(data, "stream %x is paused, pause id: %x\n",
                  stream->stream_id, httpc->pause_stream_id));
     *err = CURLE_AGAIN;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]