From 74f4782319d478953a29ed7de77d50901760ac3c Mon Sep 17 00:00:00 2001 From: Sangamkar Date: Mon, 5 Nov 2018 15:29:55 -0800 Subject: 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 --- lib/transfer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/transfer.c b/lib/transfer.c index 05ba862c2..de6043d7d 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) { -- cgit v1.2.1