mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05: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
@ -844,6 +844,11 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||||||
k->keepon &= ~KEEP_RECV;
|
k->keepon &= ~KEEP_RECV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(k->keepon & KEEP_RECV_PAUSE) {
|
||||||
|
/* this is a paused transfer */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
} while(data_pending(conn) && maxloops--);
|
} while(data_pending(conn) && maxloops--);
|
||||||
|
|
||||||
if(maxloops <= 0) {
|
if(maxloops <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user