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
I can confirm also on hapi v17.7.0 and node v11.2.0 with a simple curl request. I can also confirm that the issue does not occur on node v10.12.0 with the same hapi version. I recall some timer issues in node v11 that @cjihrig experienced and reviewed (i.e. nodejs/node#24322). While those bugs were fixed in v11.2.0, perhaps there's something else going on in a similar vein.
I don't think this is related to the timers issues (knocks on wood).
nodejs/node#20611 landed in Node 10.2.0. If you run the example against Node 10.2.0, you'll see the same output as you see on Node 11. That commit was determined to be a breaking change, and reverted in Node 10.8.0 in nodejs/node#21809, which is when the behavior goes back to what we expect.
nodejs/node#20611 was then re-released in Node 11, which is why we see the different behavior. I think hapi will probably want to update to deal with this.
I don't know if this additional information is helpful, but it looks like when running against v10.15.0, I don't see the request event fire at all (as shown in my original gist).
v8 and v10 do not have this problem, hence nothing is being reported (the internal request events are only fired on errors). With v11, looks like close is now a normal event, not just an error one.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Activity
devinivy commentedon Jan 8, 2019
I can confirm also on hapi v17.7.0 and node v11.2.0 with a simple curl request. I can also confirm that the issue does not occur on node v10.12.0 with the same hapi version. I recall some timer issues in node v11 that @cjihrig experienced and reviewed (i.e. nodejs/node#24322). While those bugs were fixed in v11.2.0, perhaps there's something else going on in a similar vein.
cjihrig commentedon Jan 8, 2019
I don't think this is related to the timers issues (knocks on wood).
nodejs/node#20611 landed in Node 10.2.0. If you run the example against Node 10.2.0, you'll see the same output as you see on Node 11. That commit was determined to be a breaking change, and reverted in Node 10.8.0 in nodejs/node#21809, which is when the behavior goes back to what we expect.
nodejs/node#20611 was then re-released in Node 11, which is why we see the different behavior. I think hapi will probably want to update to deal with this.
mfanto commentedon Jan 8, 2019
I don't know if this additional information is helpful, but it looks like when running against v10.15.0, I don't see the
requestevent fire at all (as shown in my original gist).hueniverse commentedon Jan 15, 2019
v8 and v10 do not have this problem, hence nothing is being reported (the internal request events are only fired on errors). With v11, looks like
closeis now a normal event, not just an error one.[-]Error tag incorrectly set[/-][+]Error tag incorrectly set (node 11)[/+]lock commentedon Jan 9, 2020
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Fix close event handling in node 11. Closes hapijs#3898