EQMX版本是5.3,服务器是centos,需求如下:
设备端向emqx指定TOPIC发送查询状态消息,Java端订阅该TOPIC,当收到查询消息时去查询当前设备状态然后转发到设备端订阅的TOPIC,是这么一个流程。
但是当我Java端收到设备端查询消息进行转发后(客户端订阅TOPIC,向该TOPIC发送查询结果),提示客户机未连接 (32104)
如下所示,基本发五条消息只能收到一条,其余消息都是报错客户机未连接
emqx服务端没有相关错误
EMQX 5.3.2 is running now!
2024-04-03T03:23:06.312259+00:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_bridge_http_connector:on_query/3(382), peername: 121.225.189.141:44352, clientid: gateway-system, connector: <<“emqx_authn_http:1”>>, reason: {closed,“The connection was lost.”}
2024-04-03T03:23:06.312525+00:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3(941), peername: 121.225.189.141:44352, clientid: gateway-system, id: <<“emqx_authn_http:1”>>, reason: {recoverable_error,{closed,“The connection was lost.”}}
2024-04-03T03:24:22.141444+00:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_bridge_http_connector:on_query/3(382), peername: 121.225.189.141:43789, clientid: gateway-system, connector: <<“emqx_authn_http:1”>>, reason: timeout
2024-04-03T03:24:22.141723+00:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3(941), peername: 121.225.189.141:43789, clientid: gateway-system, id: <<“emqx_authn_http:1”>>, reason: {recoverable_error,timeout}
2024-04-03T04:30:54.420395+00:00 [warning] msg: http_connector_do_request_failed, mfa: emqx_bridge_http_connector:on_query/3(382), peername: 121.225.189.141:44893, clientid: gateway-system, connector: <<“emqx_authn_http:1”>>, reason: timeout
2024-04-03T04:30:54.420593+00:00 [error] msg: send_error, mfa: emqx_resource_buffer_worker:handle_query_result_pure/3(941), peername: 121.225.189.141:44893, clientid: gateway-system, id: <<“emqx_authn_http:1”>>, reason: {recoverable_error,timeout}