Browse Source

test-net-write-slow: increase the socket timeout period

In Windows the callbacks arrive in slightly different order. A bunch
of write operations complete immediately, and after that there is a
gap of a few hundred ms. This causes the timeout timer to fire, which
is not really warranted; the first few write operations just finished a
little quicker than expected.
v0.9.1-release
Bert Belder 13 years ago
parent
commit
00ba1cbce1
  1. 2
      test/simple/test-net-write-slow.js

2
test/simple/test-net-write-slow.js

@ -32,7 +32,7 @@ buf.fill(0x61); // 'a'
var server = net.createServer(function(socket) {
socket.setNoDelay();
socket.setTimeout(200);
socket.setTimeout(1000);
socket.on('timeout', function() {
assert.fail('flushed: ' + flushed +
', received: ' + received + '/' + SIZE * N);

Loading…
Cancel
Save