mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
SSH: acknowledge speedcheck
Check for speedcheck limits during the state machine traversals
This commit is contained in:
parent
e21b103c3e
commit
d45ed0ecf5
@ -2456,6 +2456,12 @@ static CURLcode ssh_easy_statemach(struct connectdata *conn,
|
||||
|
||||
if(Curl_pgrsUpdate(conn))
|
||||
return CURLE_ABORTED_BY_CALLBACK;
|
||||
else {
|
||||
struct timeval now = Curl_tvnow();
|
||||
result = Curl_speedcheck(data, now);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
||||
left = Curl_timeleft(data, NULL, duringconnect);
|
||||
if(left < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user