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.
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.