datacollect icon indicating copy to clipboard operation
datacollect copied to clipboard

Issue : Inconsistent use of timeout in `requests.get`

Open PrinceSajjadHussain opened this issue 7 months ago • 0 comments

The requests.get calls inside get_general_stats sometimes use the timeout parameter and sometimes don't. This inconsistency can lead to unpredictable behavior, where some requests might hang indefinitely while others are properly terminated. It's best to consistently use timeout in all requests.get calls for better reliability. The timeout value can be a class variable, and overridden in each function that uses requests.

PrinceSajjadHussain avatar Jun 22 '25 18:06 PrinceSajjadHussain