Skip to content

Commit a1e999f

Browse files
committed
test: scale keepAliveTimeoutBuffer with platformTimeout
1 parent 68d7b6f commit a1e999f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

test/sequential/test-http-server-keep-alive-timeout-slow-client-headers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const server = http.createServer(common.mustCall((req, res) => {
1010
}, 2));
1111

1212
server.keepAliveTimeout = common.platformTimeout(100);
13+
server.keepAliveTimeoutBuffer = common.platformTimeout(1000);
1314

1415
server.listen(0, common.mustCall(() => {
1516
const port = server.address().port;

test/sequential/test-http-server-keep-alive-timeout-slow-server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const server = http.createServer(common.mustCall((req, res) => {
1515
}, 2));
1616

1717
server.keepAliveTimeout = common.platformTimeout(200);
18+
server.keepAliveTimeoutBuffer = common.platformTimeout(1000);
1819

1920
const agent = new http.Agent({
2021
keepAlive: true,

0 commit comments

Comments
 (0)