wwbmmm commented on issue #1561:
URL: https://github.com/apache/incubator-brpc/issues/1561#issuecomment-938440415


   > 我就是先启动client,然后再启动server。之后就一直连不上了。 error=[E112]Not connected to 
unix:local_cache.sock yet, server_id=0 [R1][E112]Not connected to 
unix:local_cache.sock yet, server_id=0 我看了example中的确实可以重新连接,连不上的时候错误码不同。 
src/brpc/socket.cpp:1136] Fail to connect to unix:1.sock: Connection refused 
Fail to connect to unix:1.sock: No such file or directory
   
   Connection refused的情况应该是sock文件存在,但是没有进程在监听
   No such file or directory的情况是sock文件不存在
   我就是用的example/echo_c++,先启动client,一开始打的是: [E112]Not connected to 
unix:path.sock yet, server_id=0 [R1][E112]Not connected to unix:path.sock yet, 
server_id=0 [R2][E112]Not connected to unix:path.sock yet, server_id=0 
[R3][E112]Not connected to unix:path.sock yet, server_id=0
   每3秒会探活一次,打印一条:Fail to connect to unix:path.sock: No such file or directory
   再启动server,下一次探活就会出现:Revived Socket{id=0 addr=unix:path.sock} 
(0x55ecd5810050) (Connectable)
   然后就正常了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to