--- curl-7.40.0/lib/http_proxy.c	2014-11-21 01:42:17.000000000 +0800
+++ curl.modify-7.40.0/lib/http_proxy.c	2015-01-15 14:19:30.233452527 +0800
@@ -228,15 +228,15 @@
       failf(data, "Proxy CONNECT aborted due to timeout");
       return CURLE_RECV_ERROR;
     }
-
-    if(0 == Curl_socket_ready(tunnelsocket, CURL_SOCKET_BAD, 0))
-      /* return so we'll be called again polling-style */
-      return CURLE_OK;
-    else {
-      DEBUGF(infof(data,
+    if(FIRSTSOCKET == sockindex) {
+      if(0 == Curl_socket_ready(tunnelsocket, CURL_SOCKET_BAD, 0))
+        /* return so we'll be called again polling-style */
+        return CURLE_OK;
+      else {
+        DEBUGF(infof(data,
                    "Read response immediately from proxy CONNECT\n"));
+      }
     }
-
     /* at this point, the tunnel_connecting phase is over. */
 
     { /* READING RESPONSE PHASE */
