exproto-svr-python示例自动断开连接

环境信息

  • EMQX 版本:4.4.4 开源版
  • 操作系统及版本:Windows Docker Desktop
  • 其他

问题描述

运行 emqx-extension-examples/exproto-svr-python/示例监听本机9001,emqx的exproto使用默认配置开启,用tcp客户端连接emqx的7993会连接自动断开。

日志信息:
2022-06-10T18:51:31.958195+00:00 [error] [ExProto gClient] CALL emqx_exproto_v_1_connection_handler_client:on_socket_created(#{channel => 'protoname:tcp'}) failed, reason: econnrefused

2022-06-10T18:51:31.958494+00:00 [error] supervisor: 'esockd_connection_sup - <0.2130.0>', errorContext: connection_shutdown, reason: {error,{on_socket_created,econnrefused}}, offender: [{pid,<0.2213.0>},{name,connection},{mfargs,{emqx_exproto_conn,start_link,[[{handler,'protoname:tcp'},{active_n,100},{idle_timeout,30000},{max_conn_rate,1000}]]}}]

根据日志,好像是emqx rpc调用python服务失败。

的错误是 emqx 无法访问你配置grpc地址,检查下网络看看

确实是网络问题,谢谢