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

dnsdist: Prevent dangling TCP fd in case setupTCPDownstream() fails #3634

Merged
merged 1 commit into from Apr 1, 2016

Conversation

rgacogne
Copy link
Member

Remove the closed socket descriptor from the sockets map.
Otherwise, if an exception occurs in setupTCPDownstream(), we might
try to use it and close it again later, not knowing it has been
reassigned to another socket or, worse, to a TCP acceptor pipe.
This might fix #3560.

Remove the closed socket descriptor from the sockets map.
Otherwise, if an exception occurs in setupTCPDownstream(), we might
try to use it and close it again later, not knowing it has been
reassigned to another socket or, worse, to a TCP acceptor pipe.
@rgacogne rgacogne merged commit 13506cd into PowerDNS:master Apr 1, 2016
@rgacogne rgacogne deleted the dnsdist-dangling-tcp-fd branch April 1, 2016 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dnsdist crash with used readn2 on non-blocking socket, got EAGAIN
1 participant