diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-30 12:43:32 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-30 13:10:56 +0200 |
commit | ab518e88316857b53bba43fbef8a1954a55cf54d (patch) | |
tree | f395567f787121c4f6732847d2227b434f77339a /lib | |
parent | c081809344bd6e35c49a1c573b954583c0e3a27d (diff) | |
download | android-node-v8-ab518e88316857b53bba43fbef8a1954a55cf54d.tar.gz android-node-v8-ab518e88316857b53bba43fbef8a1954a55cf54d.tar.bz2 android-node-v8-ab518e88316857b53bba43fbef8a1954a55cf54d.zip |
https: implement https.Server#setTimeout()
Like commit d258fb0 ("http: More useful setTimeout API on server") but
this time for the https module.
Fixes #5361.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/https.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/https.js b/lib/https.js index 000590a76d..fe329ec76e 100644 --- a/lib/https.js +++ b/lib/https.js @@ -43,12 +43,13 @@ function Server(opts, requestListener) { this.addListener('clientError', function(err, conn) { conn.destroy(err); }); + + this.timeout = 2 * 60 * 1000; } inherits(Server, tls.Server); - - exports.Server = Server; +Server.prototype.setTimeout = http.Server.prototype.setTimeout; exports.createServer = function(opts, requestListener) { return new Server(opts, requestListener); |