Commit 48231c8 1 parent 95ff10b commit 48231c8 Copy full SHA for 48231c8
File tree 2 files changed +2
-6
lines changed
test/server_integration/http/platform
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,6 @@ interface ListenerOptions {
103
103
export function createServer ( serverOptions : ServerOptions , listenerOptions : ListenerOptions ) {
104
104
const server = new Server ( serverOptions ) ;
105
105
106
- // remove fix + test as soon as update node.js to v12.19 https://github.com/elastic/kibana/pull/61587
107
- server . listener . headersTimeout =
108
- listenerOptions . keepaliveTimeout + 2 * server . listener . headersTimeout ;
109
-
110
106
server . listener . keepAliveTimeout = listenerOptions . keepaliveTimeout ;
111
107
server . listener . setTimeout ( listenerOptions . socketTimeout ) ;
112
108
server . listener . on ( 'timeout' , ( socket ) => {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default function ({ getService }: FtrProviderContext) {
31
31
const config = getService ( 'config' ) ;
32
32
33
33
describe ( 'headers timeout ' , ( ) => {
34
- it ( 'issue- 73849' , async ( ) => {
34
+ it ( 'handles correctly. See issue # 73849' , async ( ) => {
35
35
const agent = new Http . Agent ( {
36
36
keepAlive : true ,
37
37
} ) ;
@@ -74,7 +74,7 @@ export default function ({ getService }: FtrProviderContext) {
74
74
}
75
75
76
76
await performRequest ( ) ;
77
- const defaultHeadersTimeout = 40 * oneSec ;
77
+ const defaultHeadersTimeout = 60 * oneSec ;
78
78
await delay ( defaultHeadersTimeout + oneSec ) ;
79
79
await performRequest ( ) ;
80
80
} ) ;
You can’t perform that action at this time.
0 commit comments