mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58:48 -05:00
gskit: use our internal select wrapper for portability
Follow up to c52b342
Closes #5106
This commit is contained in:
parent
dda8babd07
commit
083603c63a
@ -524,7 +524,6 @@ static int pipe_ssloverssl(struct connectdata *conn, int sockindex,
|
|||||||
int m;
|
int m;
|
||||||
int i;
|
int i;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct timeval tv = {0, 0};
|
|
||||||
char buf[CURL_MAX_WRITE_SIZE];
|
char buf[CURL_MAX_WRITE_SIZE];
|
||||||
|
|
||||||
if(!connssl->use || !connproxyssl->use)
|
if(!connssl->use || !connproxyssl->use)
|
||||||
@ -544,7 +543,7 @@ static int pipe_ssloverssl(struct connectdata *conn, int sockindex,
|
|||||||
if(n < conn->sock[sockindex])
|
if(n < conn->sock[sockindex])
|
||||||
n = conn->sock[sockindex];
|
n = conn->sock[sockindex];
|
||||||
}
|
}
|
||||||
i = select(n + 1, &fds_read, &fds_write, NULL, &tv);
|
i = Curl_select(n + 1, &fds_read, &fds_write, NULL, 0);
|
||||||
if(i < 0)
|
if(i < 0)
|
||||||
return -1; /* Select error. */
|
return -1; /* Select error. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user