@hueniverse you stated that no version is compatible with node 10 and I saw that node 10 was removed from Travis for v16.
We want to move to node 10 but are still on v16 so I thought I could look into this.
From what I can tell there are some deprecation warnings for Buffer usage in the tests which are easy to solve.
Other than that there is 1 test failing on node 10.
Test 807) transmission transmit() does not leak stream data when request timeouts before stream drains
It times out due to it waiting for the stream end event to fire.
https://github.com/hapijs/hapi/blob/v16/test/transmit.js#L1944-L1986
In node 8 it does. In node 10 close is being fired but not end.
I don't know enough of streams to be sure why this is happening but according to the docs The 'end' event will not be emitted unless the data is completely consumed. which seems to me that node 10 is doing the correct thing? (https://nodejs.org/docs/latest-v10.x/api/stream.html#stream_event_end)
What was the result you received?
test 807) transmission transmit() does not leak stream data when request timeouts before stream drains timing out
What did you expect?
All tests passing
Context
- node version: 10
- hapi version: 16
- os: macOS
- any other relevant information:
Are you ok with an effort to support node 10 for v16? Are there issues for node 10 I might be missing?
@hueniverse you stated that no version is compatible with node 10 and I saw that node 10 was removed from Travis for v16.
We want to move to node 10 but are still on v16 so I thought I could look into this.
From what I can tell there are some deprecation warnings for Buffer usage in the tests which are easy to solve.
Other than that there is 1 test failing on node 10.
Test
807) transmission transmit() does not leak stream data when request timeouts before stream drainsIt times out due to it waiting for the stream
endevent to fire.https://github.com/hapijs/hapi/blob/v16/test/transmit.js#L1944-L1986
In node 8 it does. In node 10
closeis being fired but notend.I don't know enough of streams to be sure why this is happening but according to the docs
The 'end' event will not be emitted unless the data is completely consumed.which seems to me that node 10 is doing the correct thing? (https://nodejs.org/docs/latest-v10.x/api/stream.html#stream_event_end)What was the result you received?
test
807) transmission transmit() does not leak stream data when request timeouts before stream drainstiming outWhat did you expect?
All tests passing
Context
Are you ok with an effort to support node 10 for v16? Are there issues for node 10 I might be missing?