diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 6b7b81978..e3d85aee0 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1677,8 +1677,8 @@ Transfer(struct connectdata *conn) /* limit-rate logic: if speed exceeds threshold, then do not include fd in select set */ - if ( (conn->data->set.max_send_speed > 0) && - (conn->data->progress.ulspeed > conn->data->set.max_send_speed) ) { + if ( (data->set.max_send_speed > 0) && + (data->progress.ulspeed > data->set.max_send_speed) ) { fd_write = CURL_SOCKET_BAD; Curl_pgrsUpdate(conn); } @@ -1689,8 +1689,8 @@ Transfer(struct connectdata *conn) fd_write = CURL_SOCKET_BAD; } - if ( (conn->data->set.max_recv_speed > 0) && - (conn->data->progress.dlspeed > conn->data->set.max_recv_speed) ) { + if ( (data->set.max_recv_speed > 0) && + (data->progress.dlspeed > data->set.max_recv_speed) ) { fd_read = CURL_SOCKET_BAD; Curl_pgrsUpdate(conn); } |