Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test-net-write-slow: increase the socket timeout period
Browse files Browse the repository at this point in the history
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
piscisaureus committed Jun 11, 2012
1 parent 6ce013d commit 00ba1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/simple/test-net-write-slow.js
Expand Up @@ -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);
Expand Down

0 comments on commit 00ba1cb

Please sign in to comment.