diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-25 22:04:39 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-26 01:10:18 -0700 |
commit | 2470d2ee92b162ebcc4eda68958769715c3d17fb (patch) | |
tree | ec2c5b0039eb7652e12bf48101db9204ca6c3ccb /test/pummel/test-net-pingpong-delay.js | |
parent | a7b4af0ae5408c96020e79c224e17891f836c28a (diff) | |
download | node-new-2470d2ee92b162ebcc4eda68958769715c3d17fb.tar.gz |
allowHalfOpen disabled by default
Users too often would forget to add
socket.on('end', function () {
socket.end();
});
Which is a mistake. Therefore we default to this behavior and
only optionally let people handle the 'end' case themselves.
Diffstat (limited to 'test/pummel/test-net-pingpong-delay.js')
-rw-r--r-- | test/pummel/test-net-pingpong-delay.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-net-pingpong-delay.js b/test/pummel/test-net-pingpong-delay.js index 39e746b1d6..f1e3dace43 100644 --- a/test/pummel/test-net-pingpong-delay.js +++ b/test/pummel/test-net-pingpong-delay.js @@ -11,7 +11,7 @@ function pingPongTest (port, host, on_complete) { var count = 0; var client_ended = false; - var server = net.createServer(function (socket) { + var server = net.createServer({ allowHalfOpen: true }, function (socket) { socket.setEncoding("utf8"); socket.addListener("data", function (data) { |