m子4 HTTP侦听器 - ReadTimeOut的用途是什么
使用Mule 4.4社区版在前提下运行 在配置HTTP侦听器的同时,遇到了此属性:
在线检查和文档在这里
收到消息时必须等待的毫秒中的最大时间。
我尝试将其更改为5000
(5秒),并且在不提出一分钟以上的要求时等待。
然后我调用了听众,它效果很好,所以我对此属性的意义感到困惑?
我们什么时候应该使用此值?操作系统旨在充当响应超时,哪个HTTP听众的消费者会得到?
谢谢
Using mule 4.4 community edition running on premise
while configuring HTTP listener came across this property :
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
。打开连接,直到听众应该等待多长时间才能获得身体。
从我的理解中,有时会由客户完成联系,以保持连接的生命并减轻情况,在这种情况下,打开和关闭了太多的连接。 <
,鉴于您不是将GB的数据发送到端点,也不会使用HTML的多部分上传任何文件上传。
如果您是,那么您需要根据需要进行一些调整
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