Fixed tls_write_all, abort if blocked
If data to be read is blocking the socket abort.
This commit is contained in:
parent
da57b0b91b
commit
4b7aa61abd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user