net_uv: sockets should be writable during connection
authorHenry Rawas <henryr@schakra.com>
Thu, 14 Jul 2011 21:18:17 +0000 (14:18 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 14 Jul 2011 21:18:17 +0000 (14:18 -0700)
lib/net_uv.js

index 816529a..a876f6f 100644 (file)
@@ -365,6 +365,7 @@ Socket.prototype.connect = function(port /* [host], [cb] */) {
   timers.active(this);
 
   self._connecting = true;
+  self.writable = true;
 
   if (typeof host == 'string') {
     debug("connect: find host " + host);