$worker->onConnect=function($conn)use($targetAddr){
echo 'connected1';
$conn->remote=new AsyncTcpConnection($targetAddr);
$conn->remote->onClose=function($conn){
echo 1;
};
$conn->remote->pipe($conn);
$conn->pipe($conn->remote);
$conn->remote->connect();
echo 'connected2';
};
...
$worker->onClose=function($conn){
echo 1;
};
無論是在 第五行 還是第16行的均沒有輸出
是否是pipe不支持回調(diào)
且在第三行有輸出 但是第10行無輸出,是否是出現(xiàn)了bug(阻塞)?