mirror of
https://github.com/curl/curl.git
synced 2026-08-26 02:03:32 +03:00
Internal function Curl_select() renamed to Curl_socket_ready()
This commit is contained in:
parent
2166645ce4
commit
fba4cd0e62
12 changed files with 25 additions and 22 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue