mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:53:39 +03:00
xfer: manage pause bits
Concentrate the handling of KEEP_RECV_PAUSE and KEEP_SEND_PAUSE into common transfer functions. Setting or clearing these bits requires subsequent actions involving connection events and client reader/writer notifications. Have it in one place. Closes #17650
This commit is contained in:
parent
e60103cbb8
commit
0d70dfb79b
9 changed files with 114 additions and 76 deletions
|
|
@ -1056,7 +1056,8 @@ void Curl_multi_getsock(struct Curl_easy *data,
|
|||
case 0:
|
||||
CURL_TRC_M(data, "%s pollset[], timeouts=%zu, paused %d/%d (r/w)",
|
||||
caller, Curl_llist_count(&data->state.timeoutlist),
|
||||
Curl_creader_is_paused(data), Curl_cwriter_is_paused(data));
|
||||
Curl_xfer_send_is_paused(data),
|
||||
Curl_xfer_recv_is_paused(data));
|
||||
break;
|
||||
case 1:
|
||||
CURL_TRC_M(data, "%s pollset[fd=%" FMT_SOCKET_T " %s%s], timeouts=%zu",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue