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
For some reason, req.socket._isIdle = false; takes no effect, because when I examine req.socket._isIdle in res.on('finish') function I can see it's still set to true.
Hello!
I'm trying to use this module with Express, but I'm getting some weird behavior with this peace of code:
For some reason,
req.socket._isIdle = false;
takes no effect, because when I examinereq.socket._isIdle
inres.on('finish')
function I can see it's still set totrue
.But, the real problem happens here:
Because
socket._isIdle
has a incorrect value offalse
and the socket is not destroyed when shutting down.This implementation helped me to fix the problem:
Do you have ideas why is this happening? It looks like
req.socket
references different objects, but it just makes no sense.The text was updated successfully, but these errors were encountered: