gatewayWorker通信正常,但用gatewayClient连不上gatewayWorker!!!

cosloli

我的gatewayWorker从前端可以正常连接并进行通信,但是在后端调用gatewayClient就死活连不上!!!!!!
调用gatewayClient时候返回的消息如下:<br />
<b>Warning</b>: stream_socket_client(): unable to connect to tcp://0.0.0.0: (Failed to parse address "0.0.0.0:") in <b>/bigiron/mapp/Gateway.php</b> on line <b>1188</b><br />
<br />
<b>Warning</b>: stream_socket_sendto() expects parameter 1 to be resource, boolean given in <b>/bigiron/mapp/Gateway.php</b> on line <b>1189</b><br />
求助呜呜呜!!
 
连接gatewayClient配置,PS.这里的$_SESSION是前端拥有的SESSION变量:
[attach]1799[/attach]
错误信息:
[attach]1800[/attach]
start_gateway.php
[attach]1802[/attach]
start_register.php
[attach]1801[/attach]
 gatewayWorker运行信息:
[attach]1803[/attach]
 

2548 1 0
1个回答

智佳思远

参数传错了吧,$client在函数内没定义

  • cosloli 2019-03-07

    卧槽...真的是这个智障的问题,谢谢!!!

年代过于久远,无法发表回答
🔝