technoweenie/node-scoped-http-client — pull request #15 by ejfinneran (2013-05-23 05:09:52+00:00)
Title: Support adding a basic timeout to requests

I wanted to resolve #13. Open to other approaches etc as JavaScript is not my strongest language.

- If the timeout is trigger req.abort() is called.
- Also had to add an extra listener to ensure that the standard callback
is called even if the connection ends in an error.

/cc @cmingxu, @drdamour