gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 253/282: pause: force a connection (re-)check after unpausing


From: gnunet
Subject: [gnurl] 253/282: pause: force a connection (re-)check after unpausing
Date: Wed, 01 Apr 2020 14:31:58 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit e040146f22608fd92c44be2447a6505141a8a867
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Mar 6 10:04:28 2020 +0100

    pause: force a connection (re-)check after unpausing
    
    There might be data available that was already read off the socket, for
    example in the TLS layer.
    
    Reported-by: Anders Berg
    Fixes #4966
    Closes #5049
---
 lib/easy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/easy.c b/lib/easy.c
index 33bc1aab7..f7a6d5c60 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -1047,6 +1047,10 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int 
action)
   if((newstate & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
      (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) {
     Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */
+
+    /* force a recv/send check of this connection, as the data might've been
+       read off the socket already */
+    data->conn->cselect_bits = CURL_CSELECT_IN | CURL_CSELECT_OUT;
     if(data->multi)
       Curl_update_timer(data->multi);
   }

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



reply via email to

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