From 488d37b3dc6b49af98ae279cdae3ec44c8e5983f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 26 Aug 2016 21:26:28 -0700 Subject: [PATCH] doc: doc that listen can be called multiple times Fixes: https://github.com/nodejs/node/issues/4646 PR-URL: https://github.com/nodejs/node/pull/8294 Reviewed-By: Colin Ihrig --- doc/api/http.md | 9 +++++++++ doc/api/net.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index d263068bd68fc0..d8d4ef03f41d36 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -681,6 +681,9 @@ This function is asynchronous. `callback` will be added as a listener for the Returns `server`. +*Note*: The `server.listen()` method may be called multiple times. Each +subsequent call will *re-open* the server using the provided options. + ### server.listen(path[, callback])