This issue occurs when you try to make a http.request for a domain name that fails to resolve. An Agent with that domain name and port is created and cached, but gets stuck in a bad state and can no longer make requests.
The pull request includes a separate test case and suggested fix.
test case for error event triggering on dns fail in http module
fix for failure to trigger error event on dns fail in http module
thank you. landing...
Fix for DNS fail in HTTP request
Closed by b11d78b.