summaryrefslogtreecommitdiff
path: root/src/node_util.cc
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2015-12-18 01:35:23 -0500
committerBrian White <mscdex@mscdex.net>2015-12-19 14:09:36 -0500
commit4b0b991bf5bbb41e204a7b98f62a8afd00faf855 (patch)
tree8932bc50ee5226226f917616233cefd7e199a6db /src/node_util.cc
parenta2c1799a5b68dbf411785606345e166ad8acd607 (diff)
downloadandroid-node-v8-4b0b991bf5bbb41e204a7b98f62a8afd00faf855.tar.gz
android-node-v8-4b0b991bf5bbb41e204a7b98f62a8afd00faf855.tar.bz2
android-node-v8-4b0b991bf5bbb41e204a7b98f62a8afd00faf855.zip
test: fix flaky test-net-error-twice
On Windows there can exist some race condition where the notification of the client's `socket.destroy()` isn't received before the server writes to the socket. This race condition was more evident/reproducible on a single core system. This commit fixes the flakiness by waiting until the server's connection event handler has been called to destroy the client socket and perform the server socket write. Fixes: https://github.com/nodejs/node/issues/4057 PR-URL: https://github.com/nodejs/node/pull/4342 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: João Reis <reis@janeasystems.com>
Diffstat (limited to 'src/node_util.cc')
0 files changed, 0 insertions, 0 deletions