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.

This commit is contained in:
Adam Ierymenko 2014-03-20 18:49:33 -07:00
parent 70b736f440
commit 45e823d27c
7 changed files with 263 additions and 194 deletions

View file

@ -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) {