Fixed hang in SslStreamBase when stream is closed during I/O
authorIvo Smits <Ivo@UCIS.nl>
Tue, 17 Nov 2015 13:54:02 +0000 (14:54 +0100)
committerIvo Smits <Ivo@UCIS.nl>
Tue, 17 Nov 2015 13:54:02 +0000 (14:54 +0100)
commit843f1253ddc0e72a5281d23393b3a8d7f02bc055
tree72cfe4b5b149ed6c346cf5da2261aeef57d62ef9
parent3033a4b5b54f3ecc34de6ffc5299a1261e235d1b
Fixed hang in SslStreamBase when stream is closed during I/O

If the SslStreamBase is disposed while a read or write operation is in progress, the asynchronous I/O state is never marked as completed, resulting in synchronous Read/Write calls never returning. To fix this, the internal I/O callbacks should mark the asynchronous operations as completed, possibly with an error, even if the SslStreamBase is disposed.
mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs