Define timeouts globally

Hi, how to define timeouts like request timeouts globally?

Hello!

It is currently not possible to modify the default 60s timeout. While it may be useful to be able to modify this default in some situations, generally speaking, if you’re seeing 60s timeouts happening in lots of places, you’ve more than likely hit a bottleneck already and so setting a longer timeout isn’t really going to tell you anything new.

If it is just happening for particular requests, and you’re perhaps wanting to know whether the server does eventually send something back with a longer timeout, then you can modify the individual request’s timeout using Params.timeout.

1 Like

How to handle connection idle time out. Between 2 requests there is more than 60sec of sleep time.

Are you able to share the code? Unless you’ve got sleep statements between the requests, there shouldn’t be any delay.