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: remove duplicate conn close #282

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

wuqinqiang
Copy link
Contributor

  • conn has been closed in HandleTCPConn
  • double error log when err & err2 are both errors

@Ehco1996
Copy link
Owner

Ehco1996 commented Feb 1, 2024

@wuqinqiang
sorry for late reply, i just saw this pr ,thanks very much

conn has been closed in HandleTCPConn

The management of connection in the current codebase is not a good implementation. In order to avoid connection leakage, I close the connection everywhere, but I am working on refactoring this logic. Thanks for pointing it out.

double error log when err & err2 are both errors

i already notice this, and will fix this in #284

@Ehco1996 Ehco1996 merged commit fa9534c into Ehco1996:master Feb 1, 2024
1 check passed
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