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
It seems to assume that if req.finished is true then prefinish has been emitted (or all data has been flushed) and frees the socket for re-use even though more data might be written to it. req.finished just means that end() has been called, not that no more data is going to be written to the socket.
I'm not sure if this is actually a problem. Haven't been able to create any sensible repo case that fails. But it looks very suspect...
The text was updated successfully, but these errors were encountered:
Although confusing this is probably fine. responseOnEnd is only called if a socket has been assigned and if a socket is assigned then all data is directly passed to the socket.
Having a hard time to wrap my head around this one. But this looks like a potential bug:
https://github.com/nodejs/node/blob/master/lib/_http_client.js#L621
It seems to assume that if
req.finished
is true thenprefinish
has been emitted (or all data has been flushed) and frees the socket for re-use even though more data might be written to it.req.finished
just means thatend()
has been called, not that no more data is going to be written to the socket.I'm not sure if this is actually a problem. Haven't been able to create any sensible repo case that fails. But it looks very suspect...
The text was updated successfully, but these errors were encountered: