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: connection leak during listener close #1

Merged
merged 1 commit into from
May 28, 2021
Merged

fix: connection leak during listener close #1

merged 1 commit into from
May 28, 2021

Conversation

eriksw
Copy link
Collaborator

@eriksw eriksw commented May 28, 2021

Remove Close from LimitListener, falling back on the implementation by the
underlying net.Listener. The done channel was needed in the original
LimitListener due to it blocking before calling the underlying Listener's
Accept. Because closing the underlying listener will cause our call to its
Accept to return with an error that we pass along, we don't need to care at
all about it.

Signed-off-by: Erik Swanson erik@retailnext.net

Remove Close from LimitListener, falling back on the implementation by the
underlying net.Listener. The done channel was needed in the original
LimitListener due to it blocking before calling the underlying Listener's
Accept. Because closing the underlying listener will cause our call to its
Accept to return with an error that we pass along, we don't need to care at
all about it.

Signed-off-by: Erik Swanson <erik@retailnext.net>
@eriksw eriksw merged commit cf050d4 into master May 28, 2021
@eriksw eriksw deleted the fix-closed branch May 28, 2021 17:55
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.

1 participant