When a timeout is reached, Superagent internally only closes the request stream and not the response, however in nodejs, if the request prematurely closes, and response is not finished then response instance also emits the error event, so we should also handle that (which was not handled previously).
addresses #4995
Problem
When a timeout is reached, Superagent internally only closes the request stream and not the response, however in nodejs, if the request prematurely closes, and response is not finished then response instance also emits the
error
event, so we should also handle that (which was not handled previously).