mirror of
https://github.com/curl/curl.git
synced 2026-07-24 04:17:18 +03:00
Curl_socket_ready: make timeout a 'long'
It was mostly typecasted to int all over the code so switching to long instead all over should be a net gain.
This commit is contained in:
parent
fba00c9f7b
commit
4f170ee8f9
14 changed files with 26 additions and 28 deletions
|
|
@ -244,7 +244,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
|||
|
||||
/* loop every second at least, less if the timeout is near */
|
||||
switch (Curl_socket_ready(tunnelsocket, CURL_SOCKET_BAD,
|
||||
check<1000L?(int)check:1000)) {
|
||||
check<1000L?check:1000)) {
|
||||
case -1: /* select() error, stop reading */
|
||||
error = SELECT_ERROR;
|
||||
failf(data, "Proxy CONNECT aborted due to select/poll error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue