MXS-2208 If no sockets, then we use timeout
If no sockets, then we use timeout; not the other way around.
This commit is contained in:
parent
1d338f3c4a
commit
38a0d6a2df
@ -234,12 +234,12 @@ void execute(CURLM* pCurlm,
|
||||
|
||||
if (maxfd == -1)
|
||||
{
|
||||
rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||
rc = select(0, NULL, NULL, NULL, &wait);
|
||||
}
|
||||
else
|
||||
{
|
||||
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
||||
rc = select(0, NULL, NULL, NULL, &wait);
|
||||
rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||
}
|
||||
|
||||
switch (rc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user