net: fix ambiguity in EOF handling
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
net
Description of change
end
MUST always be emitted before close
. However, if a handle
will invoke uv_close_cb
immediately, or in the same JS tick - close
may be emitted first.
cc @nodejs/collaborators