SpanNetty icon indicating copy to clipboard operation
SpanNetty copied to clipboard

Fix encryption alert write during TLS handshake

Open maksimkim opened this issue 3 years ago • 0 comments

Problem: When server certificate validation fails, client SslStream tries to write Encryption Alert TLS message to the underlying stream. It fails with NRE trying to use uninitialized TlsHandler._lastContextWritePromise.

Solution: use void promise when _lastContextWritePromise is empty

maksimkim avatar May 20 '22 21:05 maksimkim