mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
https: implement https.Server#setTimeout()
Like commit d258fb0 ("http: More useful setTimeout API on server") but
this time for the https module.
Fixes #5361.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user