Skip to content

Commit

Permalink
Revert "readwrite_data: loop less"
Browse files Browse the repository at this point in the history
This reverts commit 1da640a.

That commit fixed a few issues but it seems it introduced an even worse
one. We need to rethink the approach and revert this in the mean time.

Fixes #12559
  • Loading branch information
bagder committed Dec 20, 2023
1 parent 95a882d commit f24b6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/transfer.c
Expand Up @@ -427,8 +427,9 @@ static CURLcode readwrite_data(struct Curl_easy *data,
char *buf;
size_t blen;
size_t consumed;
int maxloops = 10;
curl_off_t max_recv = data->set.max_recv_speed ? 0 : CURL_OFF_T_MAX;
int maxloops = 100;
curl_off_t max_recv = data->set.max_recv_speed?
data->set.max_recv_speed : CURL_OFF_T_MAX;
bool data_eof_handled = FALSE;

DEBUGASSERT(data->state.buffer);
Expand Down

0 comments on commit f24b6fa

Please sign in to comment.