$tcp_gateway = new Gateway("tcp://0.0.0.0:8898");
$gateway = new Gateway("Text://0.0.0.0:8282",$context);
對(duì)外提供兩個(gè)Gateway服務(wù),
從Text接收到的數(shù)據(jù),轉(zhuǎn)到到tcp上。
從tcp接收到的數(shù)據(jù)轉(zhuǎn)到text上。
數(shù)據(jù)量大時(shí),就出來(lái)
PHP Notice: fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable in /webdate/GatewayWorker/vendor/workerman/workerman/Connection/TcpConnection.php on line 372