diff options
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index b4a62f496..94d2cc00c 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1225,7 +1225,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, /* if we're in multi-mode and we would block, return instead for a retry */ if (Curl_if_multi == data->state.used_interface) { - if (0 == Curl_select(tunnelsocket, CURL_SOCKET_BAD, 0)) + if (0 == Curl_socket_ready(tunnelsocket, CURL_SOCKET_BAD, 0)) /* return so we'll be called again polling-style */ return CURLE_OK; else { @@ -1273,7 +1273,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn, } /* loop every second at least, less if the timeout is near */ - switch (Curl_select(tunnelsocket, CURL_SOCKET_BAD, + switch (Curl_socket_ready(tunnelsocket, CURL_SOCKET_BAD, check<1000L?(int)check:1000)) { case -1: /* select() error, stop reading */ error = SELECT_ERROR; |