GettingStarted With123
GettingStarted With123

Reputation: 427

mule 4 http listener - what is the use of ReadTimeout

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

Upvotes: 1

Views: 1155

Answers (1)

Dheeraj Sharma
Dheeraj Sharma

Reputation: 244

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

Upvotes: 2

Related Questions