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:
@ -234,12 +234,12 @@ void execute(CURLM* pCurlm,
|
|||||||
|
|
||||||
if (maxfd == -1)
|
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
|
else
|
||||||
{
|
{
|
||||||
struct timeval wait = { 0, 100 * 1000 }; /* 100ms */
|
rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
|
||||||
rc = select(0, NULL, NULL, NULL, &wait);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rc)
|
switch (rc)
|
||||||
|
Reference in New Issue
Block a user