]> granicus.if.org Git - curl/commitdiff
SSH: acknowledge speedcheck
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jan 2011 13:09:53 +0000 (14:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jan 2011 13:09:53 +0000 (14:09 +0100)
Check for speedcheck limits during the state machine traversals

lib/ssh.c

index 73d0478a4b834d18340db904e806cf13f2f8b8b9..58da9e629cb3a0bf720a3264d0f39f4bea7b5f7b 100644 (file)
--- 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) {