mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: handle EPIPE in closed channel test
The second handle is only sent once the first one is acknowledged, by which time the worker may already have exited, so the write can fail with EPIPE. Observed on AIX in the CI reliability report of 2026-09-04. Signed-off-by: Christian Aurich <christian.aurichzm@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65770 Refs: https://github.com/nodejs/reliability/issues/1650 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
5e73a2ca79
commit
ebc99e0560
1 file changed
+1
@@ -76,6 +76,7 @@ const server = net
|
||||
// Ignore errors when sending the second handle because the worker
|
||||
// may already have exited.
|
||||
if (err && err.code !== 'ERR_IPC_CHANNEL_CLOSED' &&
|
||||
err.code !== 'EPIPE' &&
|
||||
err.code !== 'ECONNRESET' &&
|
||||
err.code !== 'ECONNREFUSED' &&
|
||||
err.code !== 'EMFILE') {
|
||||
|
||||
Reference in new issue
Block a user