Skip to content

fix: remove duplicate conn close - #282

Merged
Ehco1996 merged 1 commit into
Ehco1996:masterfrom
wuqinqiang:master
Feb 1, 2024
Merged

fix: remove duplicate conn close#282
Ehco1996 merged 1 commit into
Ehco1996:masterfrom
wuqinqiang:master

Conversation

@wuqinqiang

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

@Ehco1996

Ehco1996 commented Feb 1, 2024

Copy link
Copy Markdown
Owner

@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
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