diff options
author | Sangamkar <dheerajs@netapp.com> | 2018-11-05 15:29:55 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-11-06 19:07:17 +0100 |
commit | 74f4782319d478953a29ed7de77d50901760ac3c (patch) | |
tree | 582a5554f85e4da822d556f80e36f5e56087617f /lib | |
parent | 397664a065abffb7c3445ca9086f917e13719d1f (diff) | |
download | curl-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')
-rw-r--r-- | lib/transfer.c | 5 |
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) { |