You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending request to a slow server with a short timeout value, before the server returns back anything, calling request.abort does not clear timeoutTimer. The ETIMEDOUT error will still be reported.
e.g.
varr=request.get('http://slowserver',request.defaults({timeout : 10000}));r.on('error',function(error){//We should not see ETIMEDOUT error hereconsole.log(error);});r.pipe(...);process.nextTick(function(){r.abort();});
Activity
mikeal commentedon Aug 27, 2014
Is this still an issue?
This is so old I'm closing, if it is actually still an issue just let me know and I'll re-open.
furstenheim commentedon Aug 22, 2017
Getting same issue with node 7 and request 2.81.0
furstenheim-geoblink commentedon Oct 23, 2019
Maybe this issue is related to this issue in Node? nodejs/node#20077
which was fixed in Node 13