File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ module.exports = function createServers(options, listening) {
103
103
port = ! isNaN ( options . http . port ) ? + options . http . port : 80 , // accepts string or number
104
104
args ;
105
105
106
+ if ( typeof options . http . timeout === 'number' ) {
107
+ server . setTimeout ( options . http . timeout ) ;
108
+ }
109
+
106
110
args = [ server , port ] ;
107
111
if ( options . http . host ) {
108
112
args . push ( options . http . host ) ;
@@ -165,6 +169,7 @@ module.exports = function createServers(options, listening) {
165
169
log ( 'https | listening on %d' , port ) ;
166
170
server = https . createServer ( finalHttpsOptions , ssl . handler || handler ) ;
167
171
172
+ if ( typeof ssl . timeout === 'number' ) server . setTimeout ( ssl . timeout ) ;
168
173
args = [ server , port ] ;
169
174
if ( options . https . host ) {
170
175
args . push ( options . https . host ) ;
You can’t perform that action at this time.
0 commit comments