1

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

  • 1
    Read Timeout Number Maximum time in milliseconds that the listener must wait while receiving a message. 30000 So that means 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. https://stackoverflow.com/questions/20763999/explain-http-keep-alive-mechanism – Dheeraj Sharma Jun 16 '22 at 04:31
  • thanks @DheerajSharma , so from my limited understanding this is something to do with keeping ```sockets open``` ? does it mean largely in 99% of the times I will not need to worry about this property ? will I need to increase this value if the payload is really large ? – GettingStarted With123 Jun 16 '22 at 04:38
  • 1
    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 – Dheeraj Sharma Jun 16 '22 at 04:44
  • 1
    Sure, will add it as an answer in sometime, well actually I’m in transit to work right now. Glad that i was of any help! – Dheeraj Sharma Jun 16 '22 at 04:49

1 Answers1

2

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

Dheeraj Sharma
  • 244
  • 1
  • 6