GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: reduce timeouts in test-net-keepalive · nodejs/node@3545e23

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-net-keepalive.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-net-keepalive.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-keepalive.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var echoServer = net.createServer(function(connection) {
88
serverConnection = connection;
99
connection.setTimeout(0);
1010
assert.notEqual(connection.setKeepAlive, undefined);
11-
// send a keepalive packet after 1000 ms
12-
connection.setKeepAlive(true, 1000);
11+
// send a keepalive packet after 50 ms
12+
connection.setKeepAlive(true, common.platformTimeout(50));
1313
connection.on('end', function() {
1414
connection.end();
1515
});
@@ -27,5 +27,5 @@ echoServer.on('listening', function() {
2727
serverConnection.end();
2828
clientConnection.end();
2929
echoServer.close();
30-
}, 1200);
30+
}, common.platformTimeout(100));
3131
});

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.