This gist contains a test program and sample output that shows a case where a Node Socket can emit an "end" event after an "error" event.
Expected behavior: socket does not emit 'end' event after 'error' event.
Unexpected behavior: socket emits 'end' event after 'error' event.
Works as expected (v0.10):
- illumos: v0.10.43 (both 32-bit and 64-bit): expected behavior