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

Commit

Permalink
fix socket-timeout. Also fix makefile test list name net-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryRawas authored and bnoordhuis committed Jul 12, 2011
1 parent 9057d3f commit 9205755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ test-uv: all
simple/test-net-reconnect \
simple/test-net-remote-address-port \
simple/test-net-server-try-ports \
simple/test-net-server-stream \
simple/test-net-stream \
simple/test-net-socket-timeout \
simple/test-next-tick \
simple/test-next-tick-errors \
simple/test-next-tick-ordering \
Expand Down
2 changes: 1 addition & 1 deletion lib/net_uv.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function Server(/* [ options, ] listener */) {
options = {};
self.on('connection', arguments[0]);
} else {
options = arguments[0];
options = arguments[0] || {};

if (typeof arguments[1] == 'function') {
self.on('connection', arguments[1]);
Expand Down

0 comments on commit 9205755

Please sign in to comment.