A suspected memory leak occurred when the connection was timeout disconnected #4362
Replies: 2 comments 5 replies
-
I believe everything should be cleaned up when the socket context and parent socket are cleaned up. Do you have data to show this isn't the case? We run many of our tests with ASAN, and they inform us when we have a leak, and I've never seen one here. |
Beta Was this translation helpful? Give feedback.
-
I believe I am experiencing the same issue. Repeated calls to ConnectionOpen, ConnectionStart, then ConnectionClose under QUIC_CONNECTION_EVENT_SHUTDOWN_COMPLETE causes process memory to grow larger and larger, usually by about 70 or 150 kilobytes. Doesn't matter if there's a server on the other end or not. Using version 2.4.8 installed with vcpkg. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following code appears to have a memory leak.
The scene is as follows:
1.The client initiates a connection and the connection times out,QUIC_CONNECTION_EVENT_SHUTDOWN_COMPLETE event callback.
2.Then actively call ConnectionClose, and DATAPATH_IO_RECV IoType callback, IoResult is EORROR_OPERATION_ABORTED.
3.Final entry CxPlatDataPathSocketProcessReceive, the RecvContext is not release while SocketContext release.
Whether memory leaks are caused by each timeout disconnection.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions