From 8249bd19cf32c099c13b62a492c37da893817bb2 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 6 Jan 2020 16:09:28 -0500 Subject: [PATCH] Revert "aix: replace ECONNRESET with EOF if already closed" This reverts commit ca08b48252230db27592248aef10c2d1779bccce, for the same reasons that it was reverted the last time it was merged. Refs: https://github.com/libuv/libuv/pull/475 Refs: https://github.com/libuv/libuv/pull/2447 PR-URL: https://github.com/libuv/libuv/pull/2602 Reviewed-By: Ben Noordhuis Reviewed-By: Michael Dawson --- src/unix/stream.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index 8c132930..8327f9cc 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -1185,10 +1185,6 @@ static void uv__read(uv_stream_t* stream) { } else if (errno == ECONNRESET && stream->type == UV_NAMED_PIPE) { uv__stream_eof(stream, &buf); return; -#elif defined(_AIX) - } else if (errno == ECONNRESET && (stream->flags & UV_DISCONNECT)) { - uv__stream_eof(stream, &buf); - return; #endif } else { /* Error. User should call uv_close(). */