-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Description
When ServerSession connects to a server via TCP, a SocketByteHandler is created:
| var byteHandler = m_socket is null ? new StreamByteHandler(m_stream!) : (IByteHandler) new SocketByteHandler(m_socket); |
If the connection is upgraded to SSL, InitSslAsync replaces the ByteHandler with a StreamByteHandler:
MySqlConnector/src/MySqlConnector/Core/ServerSession.cs
Lines 1547 to 1548 in 986f538
| var sslByteHandler = new StreamByteHandler(sslStream); | |
| m_payloadHandler!.ByteHandler = sslByteHandler; |
At this point, the original SocketByteHandler is leaked, along with the TCP socket, the SocketAwaitable, an OverlappedData, etc.
Reactions are currently unavailable