[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 188/411: pause: only trigger a reread if the unpause sticks
From: |
gnunet |
Subject: |
[gnurl] 188/411: pause: only trigger a reread if the unpause sticks |
Date: |
Wed, 13 Jan 2021 01:20:03 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 7772344e17939e86879b57b4833d56b8beadd927
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Fri Sep 25 09:45:35 2020 +0200
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 e040146f22608fd9 (shipped since 7.69.1)
Bug: https://curl.haxx.se/mail/lib-2020-09/0081.html
Patch-by: Kunal Chandarana
Fixes #5988
Closes #6013
---
lib/easy.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/easy.c b/lib/easy.c
index 453859d44..60e2befd7 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -1067,9 +1067,10 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int
action)
(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->state.tempcount)
+ /* if not pausing 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
gnunet@gnunet.org.
- [gnurl] 270/411: tool_help: make "output" description less confusing, (continued)
- [gnurl] 270/411: tool_help: make "output" description less confusing, gnunet, 2021/01/12
- [gnurl] 275/411: range.d: clarify that curl will not parse multipart responses, gnunet, 2021/01/12
- [gnurl] 347/411: KNOWN_BUGS: cmake uses -lpthread instead of Threads::Threads, gnunet, 2021/01/12
- [gnurl] 353/411: quiche: remove 'static' from local buffer, gnunet, 2021/01/12
- [gnurl] 193/411: sendf: move Curl_sendf to dict.c and make it static, gnunet, 2021/01/12
- [gnurl] 205/411: include/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 258/411: os400: Sync libcurl API options, gnunet, 2021/01/12
- [gnurl] 346/411: KNOWN_BUGS: cmake build in Linux links libcurl to libdl, gnunet, 2021/01/12
- [gnurl] 312/411: HISTORY: the new domain, gnunet, 2021/01/12
- [gnurl] 279/411: runtests: show keywords when no tests ran, gnunet, 2021/01/12
- [gnurl] 188/411: pause: only trigger a reread if the unpause sticks,
gnunet <=
- [gnurl] 251/411: Makefile.m32: add support for HTTP/3 via ngtcp2+nghttp3, gnunet, 2021/01/12
- [gnurl] 198/411: ECH: renamed from ESNI in docs and configure, gnunet, 2021/01/12
- [gnurl] 244/411: strerror: use 'const' as the string should never be modified, gnunet, 2021/01/12
- [gnurl] 223/411: scripts/release-notes.pl: don't "embed" $ in format string for printf(), gnunet, 2021/01/12
- [gnurl] 231/411: windows: fix comparison of mismatched types warning, gnunet, 2021/01/12
- [gnurl] 348/411: KNOWN_BUGS: cmake: generated .pc file contains strange entries, gnunet, 2021/01/12
- [gnurl] 318/411: hsts: remove debug code leftovers, gnunet, 2021/01/12
- [gnurl] 331/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 374/411: runtests: make 'c-ares' a "feature" to depend on, gnunet, 2021/01/12
- [gnurl] 378/411: vquic/ngtcp2.h: define local_addr as sockaddr_storage, gnunet, 2021/01/12