From 51b43675067fafaad0abd7d4f62a6a5097db5044 Mon Sep 17 00:00:00 2001 From: Nitzan Uziely Date: Fri, 25 Dec 2020 00:11:05 +0200 Subject: [PATCH] net: support abortSignal in server.listen PR-URL: https://github.com/nodejs/node/pull/36623 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell --- doc/api/net.md | 18 ++++++++++ lib/internal/streams/add-abort-signal.js | 2 +- lib/net.js | 18 ++++++++++ .../test-net-server-listen-options-signal.js | 33 +++++++++++++++++++ 4 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 test/parallel/test-net-server-listen-options-signal.js diff --git a/doc/api/net.md b/doc/api/net.md index 7e3492b4b7b0b1..137929ea83d70c 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -324,6 +324,9 @@ Listening on a file descriptor is not supported on Windows.