Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growing memory consumption on SipTcpChannel #856

Open
Educsys opened this issue Oct 6, 2022 · 0 comments
Open

Growing memory consumption on SipTcpChannel #856

Educsys opened this issue Oct 6, 2022 · 0 comments

Comments

@Educsys
Copy link

Educsys commented Oct 6, 2022

After 12 hours test, i detect growing memory consumption every time, when method SendOnConnected is called. After a little code analysis, I tried to fix the leak using the dictionary for SocketAsyncEventArgs used for sending, this helped solve the problem, but sometimes an exception started appearing: An asynchronous socket operation is already in progress using this SocketAsyncEventArgs instance. Now I have used the approach of one SocketAsyncEventArgs per data send, after each Complete event, i call SocketAsyncEventArgs.Dispose. The memory leak test was not performed, but the periodic exception disappeared. Has this problem been noticed by someone else and is the solution correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants