summaryrefslogtreecommitdiff
path: root/node/TcpSocket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-20 18:49:33 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-20 18:49:33 -0700
commit45e823d27ca83bf893e69c692ef9a842c97e5ffe (patch)
treeb6d20c1833db7e8b784a6c88af63bbd4b4ea49cb /node/TcpSocket.cpp
parent70b736f440f8ffaf7c8047a722d3d1339019b724 (diff)
downloadinfinitytier-45e823d27ca83bf893e69c692ef9a842c97e5ffe.tar.gz
infinitytier-45e823d27ca83bf893e69c692ef9a842c97e5ffe.zip
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.
Diffstat (limited to 'node/TcpSocket.cpp')
-rw-r--r--node/TcpSocket.cpp3
1 files changed, 3 insertions, 0 deletions
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<Socket> &self,SocketMana
{
Mutex::Lock _l(_writeLock);
+ if (_connecting)
+ _connecting = false;
+
if (_outptr) {
int n = (int)::send(_sock,_outbuf,_outptr,0);
if (n < 0) {