Merge pull request #2130 from eosrei/2056/ts-gateway-connect-fail

Removing TS Gateway breaking BIO_clear_flags() call
This commit is contained in:
Marc-André Moreau 2014-10-25 11:52:29 -04:00
commit 2de73e0243

View File

@ -168,7 +168,8 @@ static int bio_rdp_tls_read(BIO* bio, char* buf, int size)
case SSL_ERROR_SYSCALL:
error = WSAGetLastError();
if ((error == WSAEWOULDBLOCK) || (error == WSAEINTR) ||
(error == WSAEINPROGRESS) || (error == WSAEALREADY))
(error == WSAEINPROGRESS) || (error == WSAEALREADY) ||
(error == 0))
{
BIO_set_flags(bio, (BIO_FLAGS_READ | BIO_FLAGS_SHOULD_RETRY));
}