m子4 HTTP侦听器 - ReadTimeOut的用途是什么

发布于 2025-02-07 23:24:06 字数 561 浏览 2 评论 0原文

使用Mule 4.4社区版在前提下运行 在配置HTTP侦听器的同时,遇到了此属性:

在线检查和文档在这里

收到消息时必须等待的毫秒中的最大时间。

我尝试将其更改为5000(5秒),并且在不提出一分钟以上的要求时等待。

然后我调用了听众,它效果很好,所以我对此属性的意义感到困惑?

我们什么时候应该使用此值?操作系统旨在充当响应超时,哪个HTTP听众的消费者会得到?

谢谢

Using mule 4.4 community edition running on premise
while configuring HTTP listener came across this property :
enter image description here

Checked online and documentation here

Maximum time in milliseconds that the listener must wait while receiving a message.

I tried changing it to 5000 ( 5 seconds ) and was waiting without making a request for more than a minute .

Then I invoked the listener and it worked fine so I am confused on what is the significance of this attribute ?

when should we use this value ? os this meant to act as a response timeout which consumer of http listener would get ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

游魂 2025-02-14 23:24:07

读取超时:(编号)最大时间以毫秒为单位,听众在接收消息时必须等待。默认值:30000。

。打开连接,直到听众应该等待多长时间才能获得身体。
从我的理解中,有时会由客户完成联系,以保持连接的生命并减轻情况,在这种情况下,打开和关闭了太多的连接。 <

​,鉴于您不是将GB的数据发送到端点,也不会使用HTML的多部分上传任何文件上传。

如果您是,那么您需要根据需要进行一些调整

Read Timeout: (Number) Maximum time in milliseconds that the listener must wait while receiving a message. Default Value: 30000. Documentation is here

Read Timeout indicates once a TCP connection is opened, till how long the listener should wait to get the body.
From my understanding this is done sometimes by clients to keep the connection alive and to mitigate situations, where too many connections are opened and closed. Refer This

You can keep the default values in there and it won’t impact your implementation, given that you aren’t sending GB’s of data to your endpoints and not uploading any file using multi-part upload of HTML.

And if you are then you’ll need to tweak it a bit according to your needs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文