Unverified Commit 74f47823 authored by Sangamkar's avatar Sangamkar Committed by Daniel Stenberg
Browse files

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
parent 397664a0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {