We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 408aba6 commit ce00f6aCopy full SHA for ce00f6a
test/sequential/test-http-server-keep-alive-timeout-slow-client-headers.js
@@ -5,12 +5,13 @@ const assert = require('assert');
5
const http = require('http');
6
const net = require('net');
7
8
-const server = http.createServer(common.mustCall((req, res) => {
+const server = http.createServer({
9
+ keepAliveTimeout: common.platformTimeout(100),
10
+ keepAliveTimeoutBuffer: common.platformTimeout(1000),
11
+}, common.mustCall((req, res) => {
12
res.end();
13
}, 2));
14
-server.keepAliveTimeout = common.platformTimeout(100);
-
15
server.listen(0, common.mustCall(() => {
16
const port = server.address().port;
17
const socket = net.connect({ port }, common.mustCall(() => {
0 commit comments