fixed fd-transfer logic bug, needs new write-queue logic
This commit is contained in:
parent
c3dbae8d5e
commit
3ed5edb295
4 changed files with 124 additions and 109 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue