.NET SslStream doesn't close TLS connection properly

后端 未结 3 681
清歌不尽
清歌不尽 2020-12-14 01:17

.NET\'s SslStream class does not send the close_notify alert before closing the connection.

How can I send the close_notify al

3条回答
  •  一生所求
    2020-12-14 01:49

    For the record, SslStream at least in .NET 2.0 also doesn't appear to response to a close_notify from the other side. This means that calling OpenSSL's SSL_Shutdown() properly, i.e. twice - once to initiate the shutdown and again to wait for the response - will hang on the second call.

提交回复
热议问题