Fixed tls_write_all, abort if blocked

If data to be read is blocking the socket abort.
This commit is contained in:
Armin Novak 2021-07-28 09:20:06 +02:00 committed by akallabeth
parent da57b0b91b
commit 4b7aa61abd

View File

@ -1071,7 +1071,7 @@ int tls_write_all(rdpTls* tls, const BYTE* data, int length)
if (BIO_write_blocked(bio))
status = BIO_wait_write(bio, 100);
else if (BIO_read_blocked(bio))
status = BIO_wait_read(bio, 100);
return -2; /* Abort write, there is data that must be read */
else
USleep(100);