File tree 6 files changed +8
-8
lines changed
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()`][].
1107
1107
added: v11.3.0
1108
1108
-->
1109
1109
1110
- * {number} ** Default:** ` 40000 `
1110
+ * {number} ** Default:** ` 60000 `
1111
1111
1112
1112
Limit the amount of time the parser will wait to receive the complete HTTP
1113
1113
headers.
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.
94
94
added: v11.3.0
95
95
-->
96
96
97
- * {number} ** Default:** ` 40000 `
97
+ * {number} ** Default:** ` 60000 `
98
98
99
99
See [ ` http.Server#headersTimeout ` ] [ ] .
100
100
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ function Server(options, requestListener) {
348
348
this . timeout = 0 ;
349
349
this . keepAliveTimeout = 5000 ;
350
350
this . maxHeadersCount = null ;
351
- this . headersTimeout = 40 * 1000 ; // 40 seconds
351
+ this . headersTimeout = 60 * 1000 ; // 60 seconds
352
352
}
353
353
ObjectSetPrototypeOf ( Server . prototype , net . Server . prototype ) ;
354
354
ObjectSetPrototypeOf ( Server , net . Server ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function Server(opts, requestListener) {
77
77
this . timeout = 0 ;
78
78
this . keepAliveTimeout = 5000 ;
79
79
this . maxHeadersCount = null ;
80
- this . headersTimeout = 40 * 1000 ; // 40 seconds
80
+ this . headersTimeout = 60 * 1000 ; // 60 seconds
81
81
}
82
82
ObjectSetPrototypeOf ( Server . prototype , tls . Server . prototype ) ;
83
83
ObjectSetPrototypeOf ( Server , tls . Server ) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ const headers =
17
17
const server = createServer ( common . mustNotCall ( ) ) ;
18
18
let sendCharEvery = 1000 ;
19
19
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 ) ;
22
22
23
23
// Pass a REAL env variable to shortening up the default
24
24
// 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({
27
27
28
28
let sendCharEvery = 1000 ;
29
29
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 ) ;
32
32
33
33
// Pass a REAL env variable to shortening up the default
34
34
// value which is 40s otherwise
You can’t perform that action at this time.
0 commit comments