Internal function Curl_select() renamed to Curl_socket_ready()
This commit is contained in:
@@ -83,7 +83,7 @@ static int blockread_all(struct connectdata *conn, /* connection data */
|
||||
result = ~CURLE_OK;
|
||||
break;
|
||||
}
|
||||
if(Curl_select(sockfd, CURL_SOCKET_BAD,
|
||||
if(Curl_socket_ready(sockfd, CURL_SOCKET_BAD,
|
||||
(int)(conn_timeout - conntime)) <= 0) {
|
||||
result = ~CURLE_OK;
|
||||
break;
|
||||
@@ -372,7 +372,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
||||
Curl_nonblock(sock, TRUE);
|
||||
|
||||
/* wait until socket gets connected */
|
||||
result = Curl_select(CURL_SOCKET_BAD, sock, (int)timeout);
|
||||
result = Curl_socket_ready(CURL_SOCKET_BAD, sock, (int)timeout);
|
||||
|
||||
if(-1 == result) {
|
||||
failf(conn->data, "SOCKS5: no connection here");
|
||||
@@ -404,7 +404,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
||||
|
||||
Curl_nonblock(sock, TRUE);
|
||||
|
||||
result = Curl_select(sock, CURL_SOCKET_BAD, (int)timeout);
|
||||
result = Curl_socket_ready(sock, CURL_SOCKET_BAD, (int)timeout);
|
||||
|
||||
if(-1 == result) {
|
||||
failf(conn->data, "SOCKS5 nothing to read");
|
||||
|
Reference in New Issue
Block a user