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

Avoid leaking ssl_fd on every new SSL connection #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samstokes
Copy link

I believe this fixes a memory leak when running tcpkali with --ssl. The SSL structure created by SSL_new in ssl_setup were not being freed anywhere, so in a long-running process with a lot of new connections it was possible to leak quite a lot of memory.

We are running tcpkali with --ssl -c10k and a multi-day -T, and without this patch we see it consuming gigabytes of RAM after a couple of mass reconnections. With this patch its memory usage is steady across reconnections. This graph shows the difference we see:

Screenshot from 2019-04-08 10-41-57

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2019

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants