fixed fd-transfer logic bug, needs new write-queue logic

This commit is contained in:
Joseph Henry 2015-09-22 17:43:20 -04:00
parent c3dbae8d5e
commit 3ed5edb295
4 changed files with 124 additions and 109 deletions

View file

@ -297,7 +297,7 @@ public:
int fd[2]; fd[0] = -1; fd[1] = -1;
if ((::socketpair(PF_LOCAL,SOCK_STREAM,0,fd) != 0)||(fd[0] <= 0)||(fd[1] <= 0))
return (PhySocket *)0;
fcntl(fd[0],F_SETFL,O_NONBLOCK);
//fcntl(fd[0],F_SETFL,O_NONBLOCK);
try {
_socks.push_back(PhySocketImpl());