Skip to content

Commit

Permalink
multi: fix CURLM_STATE_TOOFAST for multi_socket
Browse files Browse the repository at this point in the history
The code in the toofast state needs to first recalculate the values
before it uses them again since it may have been a while since it last
did it when it reaches this point.
  • Loading branch information
nicholasmaniscalco authored and bagder committed Feb 2, 2011
1 parent 08a7702 commit 73eb996
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/multi.c
Expand Up @@ -1408,6 +1408,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,

case CURLM_STATE_TOOFAST: /* limit-rate exceeded in either direction */
/* if both rates are within spec, resume transfer */
Curl_pgrsUpdate(easy->easy_conn);
if( ( (data->set.max_send_speed == 0) ||
(data->progress.ulspeed < data->set.max_send_speed )) &&
( (data->set.max_recv_speed == 0) ||
Expand Down

0 comments on commit 73eb996

Please sign in to comment.