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

mbedtls_net_free shouldn't close the connection #9958

Open
XavierChanth opened this issue Feb 7, 2025 · 0 comments
Open

mbedtls_net_free shouldn't close the connection #9958

XavierChanth opened this issue Feb 7, 2025 · 0 comments

Comments

@XavierChanth
Copy link

XavierChanth commented Feb 7, 2025

Suggested enhancement

mbedtls_net_free shouldn't close the connection, only free associated memory.
Or more realistically, to avoid breaking changes, a new method which only frees memory without closing the socket should be implemented.

Justification

When you fork a process that has mbedtls_net_context objects in memory then there is no way to safely clean up the mbedtls_net_context in the child process without disrupting the connection in the parent process. I should be able to control the allocated memory in an individual process without it impacting another process.

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