amplitude-api icon indicating copy to clipboard operation
amplitude-api copied to clipboard

Add the ability to set request timeout options

Open supreet321 opened this issue 2 years ago • 1 comments

The default request timeout of Net::HTTP is quite generous (60 seconds). This PR allows users to tweak the timeouts, if needed.

supreet321 avatar Nov 25 '22 21:11 supreet321

Should we allow specifying timeout overrides on a per-method basis as well? Like setting default to be 10 seconds, but if we push multiple events – pass timeout override. I don't know how much valuable it is.

ixti avatar Nov 25 '22 22:11 ixti