uhd-urz / elAPI

An extensible API client for eLabFTW
GNU Affero General Public License v3.0
5 stars 0 forks source link

Default timeout #52

Closed alexander-haller closed 1 month ago

alexander-haller commented 1 month ago

In GitLab by @mhxion on Jun 26, 2024, 24:41

Right now, the default timeout is 5s (same as the HTTP client library we're using). After some googling I came to realize 5 second is too low for timeouts. In fact, bill-teams teams-info fails on dev server with the default timeout 5s! What should be default timeout? For now I am increasing it to 30 seconds.

We could take hints from browser default timeouts. Firefox on my machine has 90 seconds as default.

alexander-haller commented 1 month ago

My Firefox has the same value - so this seems like a practical default - lets take 90 seconds :thumbsup:

alexander-haller commented 1 month ago

In GitLab by @mhxion on Jun 27, 2024, 03:09

Will update. Thanks for quick feedback.