summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorSangamkar <dheerajs@netapp.com>2018-11-05 15:29:55 -0800
committerDaniel Stenberg <daniel@haxx.se>2018-11-06 19:07:17 +0100
commit74f4782319d478953a29ed7de77d50901760ac3c (patch)
tree582a5554f85e4da822d556f80e36f5e56087617f /lib/transfer.c
parent397664a065abffb7c3445ca9086f917e13719d1f (diff)
downloadcurl-74f4782319d478953a29ed7de77d50901760ac3c.tar.gz
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
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c5
1 files changed, 5 insertions, 0 deletions
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) {