mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
pause: only trigger a reread if the unpause sticks
As an unpause might itself get paused again and then triggering another
reread doesn't help.
Follow-up from e040146f22
(shipped since 7.69.1)
Bug: https://curl.haxx.se/mail/lib-2020-09/0081.html
Patch-by: Kunal Chandarana
Fixes #5988
Closes #6013
This commit is contained in:
parent
11522d7292
commit
7772344e17
@ -1067,9 +1067,10 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int action)
|
|||||||
(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) {
|
(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) {
|
||||||
Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */
|
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
|
if(!data->state.tempcount)
|
||||||
read off the socket already */
|
/* if not pausing again, force a recv/send check of this connection as
|
||||||
data->conn->cselect_bits = CURL_CSELECT_IN | CURL_CSELECT_OUT;
|
the data might've been read off the socket already */
|
||||||
|
data->conn->cselect_bits = CURL_CSELECT_IN | CURL_CSELECT_OUT;
|
||||||
if(data->multi)
|
if(data->multi)
|
||||||
Curl_update_timer(data->multi);
|
Curl_update_timer(data->multi);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user