Commit 5a2541de authored by José F. Romaniello's avatar José F. Romaniello Committed by Fedor Indutny
Browse files

http: handle errors on idle sockets

This change adds a new event handler to the `error` event of the socket
after it has been used by the http_client.

The purpose of this change is to catch errors on *keep alived*
connections from idle sockets that otherwise will cause an uncaugh error
event on the application.

Fix: #3595
PR-URL: https://github.com/nodejs/node/pull/4482


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 68bafb8b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment