Fix timeout for polling (partly fixes #3602)
This commit is contained in:
parent
9de311feee
commit
589d2ec62a
@ -737,10 +737,14 @@ static int tls_do_handshake(rdpTls* tls, BOOL clientMode)
|
||||
|
||||
do
|
||||
{
|
||||
status = poll(&pollfds, 1, 10 * 1000);
|
||||
status = poll(&pollfds, 1, 10);
|
||||
}
|
||||
while ((status < 0) && (errno == EINTR));
|
||||
|
||||
if (status == 0) {
|
||||
status = WAIT_TIMEOUT;
|
||||
}
|
||||
|
||||
#elif !defined(_WIN32)
|
||||
FD_ZERO(&rset);
|
||||
FD_SET(fd, &rset);
|
||||
|
Loading…
Reference in New Issue
Block a user