Skip to content

fix(trojan): potential memory leak#297

Merged
nadoo merged 1 commit intonadoo:masterfrom
mzz2017:fix_trojan_memory_leaking
Nov 28, 2021
Merged

fix(trojan): potential memory leak#297
nadoo merged 1 commit intonadoo:masterfrom
mzz2017:fix_trojan_memory_leaking

Conversation

@mzz2017
Copy link
Copy Markdown
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.

2 participants