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(inputs.socket_listener): Correctly close connection #12280

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

srebhan
Copy link
Contributor

@srebhan srebhan commented Nov 24, 2022

resolves #12276

This PR fixes an issue where the socket-listener leaks connections in case the client (correctly) waits for the server to close the connection after sending FIN. This PR closes the connection correctly after read finishes and thus avoids the leakage.

@telegraf-tiger telegraf-tiger bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Nov 24, 2022
@srebhan srebhan added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin regression something that used to work, but is now broken and removed feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Nov 24, 2022
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Nov 25, 2022
Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@powersj powersj merged commit 0e7a3c6 into influxdata:master Nov 28, 2022
powersj pushed a commit that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. regression something that used to work, but is now broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

socket_listener input plugin leaking tcp connections
2 participants