gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 20/220: http2_recv: trigger another read when the l


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 20/220: http2_recv: trigger another read when the last data is returned
Date: Thu, 12 Sep 2019 17:26:20 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit fc6045f5d1367b3bd60bb00aa9bed5164f000aee
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Jul 29 11:15:33 2019 +0200

    http2_recv: trigger another read when the last data is returned
    
    ... so that end-of-stream is detected properly.
    
    Reported-by: Tom van der Woerdt
    Fixes #4043
    Closes #4160
---
 lib/http2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/http2.c b/lib/http2.c
index eb55e62d1..711263524 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -1755,6 +1755,9 @@ static ssize_t http2_recv(struct connectdata *conn, int 
sockindex,
     else if(!stream->closed) {
       drained_transfer(data, httpc);
     }
+    else
+      /* this stream is closed, trigger a another read ASAP to detect that */
+      Curl_expire(data, 0, EXPIRE_RUN_NOW);
 
     return retlen;
   }

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



reply via email to

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