projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0913014
)
test-net-reconnect needs socket connect event
author
Henry Rawas
<henryr@schakra.com>
Fri, 8 Jul 2011 22:03:48 +0000
(15:03 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 12 Jul 2011 16:54:40 +0000
(09:54 -0700)
Makefile
patch
|
blob
|
history
lib/net_uv.js
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 131cc3a2775d66f9dbb5d763784b20da9e57a443..de2da0faf45f11e7242705aeb305f8daf65653a7 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-137,6
+137,7
@@
test-uv: all
simple/test-net-isip \
simple/test-net-keepalive \
simple/test-net-pingpong \
+ simple/test-net-reconnect \
simple/test-net-remote-address-port \
simple/test-net-server-try-ports \
simple/test-net-server-stream \
diff --git
a/lib/net_uv.js
b/lib/net_uv.js
index fded05d4a71b384599dde83e5bec6aab889546be..ac521fbc532866c906ad55d6fa277920e189e972 100644
(file)
--- a/
lib/net_uv.js
+++ b/
lib/net_uv.js
@@
-550,6
+550,7
@@
function onconnection(clientHandle) {
DTRACE_NET_SERVER_CONNECTION(socket);
self.emit('connection', socket);
+ socket.emit('connect');
}