Fix timeout for polling (partly fixes #3602)

This commit is contained in:
Christian Plattner 2018-04-18 10:38:42 +02:00
parent 9de311feee
commit 589d2ec62a

View File

@ -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);