1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

oops, missed the shut-off non-blocking fix

This commit is contained in:
Daniel Stenberg 2001-04-11 06:59:00 +00:00
parent b2362bf51c
commit 62056a644f

View File

@ -1244,8 +1244,12 @@ static CURLcode ConnectPlease(struct UrlData *data,
conntimeout.tv_sec = conn->data->connecttimeout;
conntimeout.tv_usec = 0;
if(-1 != select (conn->firstsocket + 1, NULL, &connectfd, NULL, &conntimeout)) {
if (FD_ISSET(conn->firstsocket, &connectfd))
if (FD_ISSET(conn->firstsocket, &connectfd)) {
/* shut off non-blocking again */
nonblock = 0;
ioctlsocket(conn->firstsocket, FIONBIO, &nonblock);
return CURLE_OK;
}
else
errno = EINTR;
}