libuv/src
Santiago Gimeno 05a003a3f7 stream: squelch ECONNRESET error if already closed
Add new UV__POLLRDHUP event to be emitted when EPOLLRDHUP(in Linux) or
EV_EOF(in BSD / OSX) is detected and only if UV_READABLE is set.

When a read returns ECONNRESET after a UV__POLLRDHUP event, emit EOF instead
of the error.

Add tcp-squelch-connreset test. Not to be run on Windows as it returns
ECONNRESET error.

Fixes in test-poll and test-tcp-open so they pass after these changes.

PR-URL: https://github.com/libuv/libuv/pull/403
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2015-07-10 09:25:01 +02:00
..
unix stream: squelch ECONNRESET error if already closed 2015-07-10 09:25:01 +02:00
win win,tty: support consoles with non-default colors 2015-07-09 20:21:28 -07:00
fs-poll.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c unix, windows: fix parsing scoped IPv6 addresses 2014-05-25 23:30:46 +02:00
queue.h common: use offsetof for QUEUE_DATA 2015-07-03 11:38:24 +02:00
threadpool.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
uv-common.c win: include "malloc.h" 2015-06-15 09:50:20 +02:00
uv-common.h win,stream: add slot to remember CRT fd 2015-06-14 16:22:17 -07:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00