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:
parent
70b736f440
commit
45e823d27c
7 changed files with 263 additions and 194 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue