From d45ed0ecf5a92b35868b46943871dfa4ec14c7a2 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 5 Jan 2011 14:09:53 +0100
Subject: [PATCH] SSH: acknowledge speedcheck

Check for speedcheck limits during the state machine traversals
---
 lib/ssh.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/ssh.c b/lib/ssh.c
index 73d0478..58da9e6 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) {
-- 
1.7.2.3

