Please tell me if you have additional requirements for accept this patch. Docs update, additional test, etc.
Fix: timeout on socket, timeout after redirect
only set the additional socketTimeout if the timeout option is set, otherwise it should use the default socket timeout which should propagate (as of 0.6.0) to the request object and we'll already handle it.
also, test to make sure that aborting the request doesn't already cause an error. if it does then we'll end up emitting double-errors.
This block inside if (self.timeout) and socket timeout will be applied only with current setTimeout mechanism.
About double error: I will check it.
Great, after you check on the double error comment and I'll merge.
Fix: timeout after redirect 2
I forgot these lines in previous commit