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

fix(trojan): potential memory leak #297

Merged
merged 1 commit into from
Nov 28, 2021

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Nov 18, 2021

I can stably observe that when using Trojan as the server, there will be memory leak issues.

When I investigate the problem, I found it related to the fallback. I mean that the problem is particularly obvious when fallback address is not set.

After code auditing, I fixed a possible leak, but I can't guarantee that the problem was completely repaired, because I have not conducted further testing.

https://github.com/golang/go/blob/master/src/crypto/tls/conn.go#L1314

@nadoo nadoo merged commit ca320d3 into nadoo:master Nov 28, 2021
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.

None yet

2 participants