The underlying `epoll_wait()` reports `EPOLLOUT|EPOLLERR|EPOLLHUP` on the affected file descriptor, which `ext-uv` emits as an error code `EBADF` with no events attached. We explicitly re-enable all active events on this error event to invoke the writable listener for this condition to match other event loop implementations and successfully detect this as a refused connection attempt. All tests are now green.
clue
changed the title
[WIP] ExtUvLoop: Fix reporting connection refused
ExtUvLoop: Fix reporting connection refused
clue
changed the title
ExtUvLoop: Fix reporting connection refused
ExtUvLoop: Fix reporting connection refused errors
clue
mentioned this pull request
Merged
jsor approved these changes Dec 31, 2019
clue deleted the ext-uv-connections branch
December 31, 2019 14:13