Skip to content
Browse files

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.
  • Loading branch information...
1 parent 6ce013d commit 00ba1cbce1180bafbe4529c5783d31b9d5823a13 @piscisaureus piscisaureus committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/simple/test-net-write-slow.js
View
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);

0 comments on commit 00ba1cb

Please sign in to comment.
Something went wrong with that request. Please try again.