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()`][].
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 @@ -356,7 +356,7 @@ function Server(options, requestListener) {
356
356
this . timeout = kDefaultHttpServerTimeout ;
357
357
this . keepAliveTimeout = 5000 ;
358
358
this . maxHeadersCount = null ;
359
- this . headersTimeout = 40 * 1000 ; // 40 seconds
359
+ this . headersTimeout = 60 * 1000 ; // 60 seconds
360
360
}
361
361
ObjectSetPrototypeOf ( Server . prototype , net . Server . prototype ) ;
362
362
ObjectSetPrototypeOf ( Server , net . Server ) ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ function Server(opts, requestListener) {
81
81
this . timeout = kDefaultHttpServerTimeout ;
82
82
this . keepAliveTimeout = 5000 ;
83
83
this . maxHeadersCount = null ;
84
- this . headersTimeout = 40 * 1000 ; // 40 seconds
84
+ this . headersTimeout = 60 * 1000 ; // 60 seconds
85
85
}
86
86
ObjectSetPrototypeOf ( Server . prototype , tls . Server . prototype ) ;
87
87
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