Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dnsdist: Prevent dangling TCP fd in case setupTCPDownstream() fails
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.
- Loading branch information