aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-01-05 14:09:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-01-05 14:09:53 +0100
commitd45ed0ecf5a92b35868b46943871dfa4ec14c7a2 (patch)
tree8328226ec87b13745db8d6ae57c968d40a9004be /lib
parente21b103c3ee8eea0936a49863b3ad006e1d7ebb8 (diff)
SSH: acknowledge speedcheck
Check for speedcheck limits during the state machine traversals
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 73d0478a4..58da9e629 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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) {