mirror of
https://github.com/curl/curl.git
synced 2026-07-25 11:37:47 +03:00
libcurl: stop reading from paused transfers
In the transfer loop it would previously not acknwledge the pause bit and continue until drained or loop ended. Closes #3240
This commit is contained in:
parent
397664a065
commit
74f4782319
1 changed files with 5 additions and 0 deletions
|
|
@ -844,6 +844,11 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||
k->keepon &= ~KEEP_RECV;
|
||||
}
|
||||
|
||||
if(k->keepon & KEEP_RECV_PAUSE) {
|
||||
/* this is a paused transfer */
|
||||
break;
|
||||
}
|
||||
|
||||
} while(data_pending(conn) && maxloops--);
|
||||
|
||||
if(maxloops <= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue