Skip to content

Conversation

@arp242
Copy link
Collaborator

@arp242 arp242 commented Jan 8, 2026

It could leak connections if Listener.Close() was called before Listener.connect(), because connect() would create a connection and then hold the lock and set l.cn.

Fixes #1192

It could leak connections if Listener.Close() was called before
Listener.connect(), because connect() would create a connection and
*then* hold the lock and set l.cn.

Fixes #1192
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.

bug: connection not cleanup up if Listener.Close() called before connection is established

2 participants