You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/25 05:28:24 UTC

[GitHub] [rocketmq-client-cpp] panyongxuan opened a new issue #204: PushConsumer网络中断重连异常

panyongxuan opened a new issue #204: PushConsumer网络中断重连异常
URL: https://github.com/apache/rocketmq-client-cpp/issues/204
 
 
   场景描述(1、2、3、 4 正常,5-6有异议),步骤如下:
   1.rocketMQ服务器正常运行
   2.通过C接口的CPushConsumer对象连接服务器并订阅(连接和订阅成功)
   3.通过mqshutdown 停止broker和namesrv
   4.查看日志,发现库在的socket一直在循环尝试重新连接(大约1分钟内一直重复try to connect、invokeAsync failed、pullMessageAsync failed of addr、eventcb: received error 、can not connect to server、disconnect等重连操作)
   5.但是超过一段时间(本机是1分钟左右)后,就停止重连操作了(最后卡在“disconnect:10.110.9.100:10911 start. event:0x7f6eac007c20[disconnect:135]”上,没有相应的:disconnect:10.110.9.100:10911 completely[disconnect:138],只有也没有try to connect等操作)
   6.在这之后重新启动rocketMQ服务器,也同样无法连接
   
   注:部分连接参数设置:  
   m_tcpConnectTimeout = 400;        
   m_tcpTransportTryLockTimeout = 3;  
   
   7025_rocketmq-cpp.log.zip为日志文件
   
   [7025_rocketmq-cpp.log.zip](https://github.com/apache/rocketmq-client-cpp/files/3884950/7025_rocketmq-cpp.log.zip)
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services