From 45e823d27ca83bf893e69c692ef9a842c97e5ffe Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 20 Mar 2014 18:49:33 -0700 Subject: Reworking of paths in Peer work-in-progress, and TCP connect support in SocketManager. Also add FD_SETSIZE checking for the default select implementation of sockets. --- node/TcpSocket.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node/TcpSocket.cpp') diff --git a/node/TcpSocket.cpp b/node/TcpSocket.cpp index 83169d12..dce7d3a7 100644 --- a/node/TcpSocket.cpp +++ b/node/TcpSocket.cpp @@ -159,6 +159,9 @@ bool TcpSocket::notifyAvailableForWrite(const SharedPtr &self,SocketMana { Mutex::Lock _l(_writeLock); + if (_connecting) + _connecting = false; + if (_outptr) { int n = (int)::send(_sock,_outbuf,_outptr,0); if (n < 0) { -- cgit v1.2.3