From: Sangamkar Date: Mon, 5 Nov 2018 23:29:55 +0000 (-0800) Subject: libcurl: stop reading from paused transfers X-Git-Tag: curl-7_63_0~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74f4782319d478953a29ed7de77d50901760ac3c;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/transfer.c b/lib/transfer.c index 05ba862c27..de6043d7d3 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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) {