File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ Stops the server from accepting new connections. See [`net.Server.close()`][].
11071107added: v11.3.0
11081108-->
11091109
1110- * {number} ** Default:** ` 40000 `
1110+ * {number} ** Default:** ` 60000 `
11111111
11121112Limit the amount of time the parser will wait to receive the complete HTTP
11131113headers.
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ See [`server.close()`][`http.close()`] from the HTTP module for details.
9494added: v11.3.0
9595-->
9696
97- * {number} ** Default:** ` 40000 `
97+ * {number} ** Default:** ` 60000 `
9898
9999See [ ` http.Server#headersTimeout ` ] [ ] .
100100
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ function Server(options, requestListener) {
348348 this . timeout = 0 ;
349349 this . keepAliveTimeout = 5000 ;
350350 this . maxHeadersCount = null ;
351- this . headersTimeout = 40 * 1000 ; // 40 seconds
351+ this . headersTimeout = 60 * 1000 ; // 60 seconds
352352}
353353ObjectSetPrototypeOf ( Server . prototype , net . Server . prototype ) ;
354354ObjectSetPrototypeOf ( Server , net . Server ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function Server(opts, requestListener) {
7777 this . timeout = 0 ;
7878 this . keepAliveTimeout = 5000 ;
7979 this . maxHeadersCount = null ;
80- this . headersTimeout = 40 * 1000 ; // 40 seconds
80+ this . headersTimeout = 60 * 1000 ; // 60 seconds
8181}
8282ObjectSetPrototypeOf ( Server . prototype , tls . Server . prototype ) ;
8383ObjectSetPrototypeOf ( Server , tls . Server ) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ const headers =
1717const server = createServer ( common . mustNotCall ( ) ) ;
1818let sendCharEvery = 1000 ;
1919
20- // 40 seconds is the default
21- assert . strictEqual ( server . headersTimeout , 40 * 1000 ) ;
20+ // 60 seconds is the default
21+ assert . strictEqual ( server . headersTimeout , 60 * 1000 ) ;
2222
2323// Pass a REAL env variable to shortening up the default
2424// value which is 40s otherwise this is useful for manual
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ const server = createServer({
2727
2828let sendCharEvery = 1000 ;
2929
30- // 40 seconds is the default
31- assert . strictEqual ( server . headersTimeout , 40 * 1000 ) ;
30+ // 60 seconds is the default
31+ assert . strictEqual ( server . headersTimeout , 60 * 1000 ) ;
3232
3333// Pass a REAL env variable to shortening up the default
3434// value which is 40s otherwise
You can’t perform that action at this time.
0 commit comments