summaryrefslogtreecommitdiff
path: root/lib/_tls_wrap.js
diff options
context:
space:
mode:
authorJan Schär <jscissr@gmail.com>2016-08-12 18:22:22 +0200
committerMatteo Collina <hello@matteocollina.com>2016-09-12 16:57:27 +0200
commitfd6af98c2d623c87f910437086ea04c7be195df8 (patch)
tree3e131093fb068a27ceca52ed4065974f45175ecb /lib/_tls_wrap.js
parent1ffdbb6f423a7e1a3ae1f298e67c0f111443e629 (diff)
downloadandroid-node-v8-fd6af98c2d623c87f910437086ea04c7be195df8.tar.gz
android-node-v8-fd6af98c2d623c87f910437086ea04c7be195df8.tar.bz2
android-node-v8-fd6af98c2d623c87f910437086ea04c7be195df8.zip
net: refactor Server.prototype.listen
This PR simplifies Server.prototype.listen, removing some redundancy and inconsistency. Because listen and connect have a similar function signature, normalizeConnectArgs can be reused for listen. listenAfterLookup renamed to lookupAndListen for consistency with lookupAndConnect, and moved out of Server.prototype.listen. PR-URL: https://github.com/nodejs/node/pull/4039 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Glen Keane <glenkeane.94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/_tls_wrap.js')
-rw-r--r--lib/_tls_wrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index c2ecd07a4b..e1e4ab8af6 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -952,7 +952,7 @@ function SNICallback(servername, callback) {
//
//
function normalizeConnectArgs(listArgs) {
- var args = net._normalizeConnectArgs(listArgs);
+ var args = net._normalizeArgs(listArgs);
var options = args[0];
var cb = args[1];