You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mule简易流低速网络超时:出现connect ETIMEDOUT错误

Mule HTTP超时限制测试异常问题

环境信息

  • Mule版本:4.5.3
  • HTTP连接器版本:1.9
  • 测试端点:https://throttletest-cvg5tp.5sc6y6-4.usa-e2.cloudhub.io/throttle

测试现象

  • 用Postman结合NetLimiter限流测试:
    • 不限速或速率约3kb/s时,请求可正常响应
    • 速率降低后结果不稳定,设为500b/s时请求完全失败
  • 改用QoS策略测试,得到一致现象
  • 已在应用配置中设置500000ms(约8分钟)的超时参数,但请求仍会在20秒左右报错:Error: connect ETIMEDOUT x.xx.xx.xx:443

当前应用配置

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:cluster="http://www.mulesoft.org/schema/mule/ee/cluster" xmlns:http="http://www.mulesoft.org/schema/mule/http"
    xmlns="http://www.mulesoft.org/schema/mule/core"
    xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
    <configuration doc:name="Configuration" doc:id="f1852376-1b82-465b-81ce-2893baa8d050" defaultResponseTimeout="500000" shutdownTimeout="500000" defaultTransactionTimeout="5000">
    </configuration>
    <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="505ed808-1a73-43bc-b51b-f1875ec92dfe" >
        <http:listener-connection host="0.0.0.0" port="8081" connectionIdleTimeout="500000" readTimeout="500000">
        </http:listener-connection>
    </http:listener-config> 
    <flow name="throttletestFlow" doc:id="ec3ca942-4c35-4f50-b88c-220bc3ef9d32" >
        <http:listener doc:name="Listener" doc:id="b7dbab9d-e916-431e-86fc-2c000e08cda6" config-ref="HTTP_Listener_config" path="/throttle">
    </http:listener>
        <set-payload value="hello world" doc:name="Set Payload" doc:id="c1296134-c3b4-409b-9fa8-f7ea7188bd97" />
    </flow>
</mule>

问题原因及解决建议

  1. CloudHub平台超时限制:CloudHub默认对入站HTTP请求设置20秒超时,该平台级配置优先级高于应用内的超时设置,需联系MuleSoft技术支持调整负载均衡的超时参数。
  2. TCP层超时触发:低速率场景下,TCP连接可能因长时间无数据交互触发底层超时(如SYN重试、空闲超时),可检查并调整网络设备的TCP超时配置。
  3. 配置有效性验证:通过Mule应用日志确认readTimeout等参数是否实际生效,排查是否有其他配置或组件覆盖了超时设置。

内容的提问来源于stack exchange,提问作者Clonebaby59

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 02:57:02