aix: replace ECONNRESET with EOF if already closed
PR-URL: https://github.com/libuv/libuv/pull/2447 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
5ba93edef6
commit
ca08b48252
@ -1180,6 +1180,10 @@ 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(). */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user