inventree / inventree-python

Python library for communication with inventree via API
https://docs.inventree.org/en/latest/api/python/python/
MIT License
26 stars 34 forks source link

Inventree python timeout #157

Closed miggland closed 1 year ago

miggland commented 1 year ago

Sometimes my server is a bit slow in replying. I would like to be able to set a more lenient timeout parameter in requests.

@SchrodingersGat: Is there a specific reason the timeout is 2.5s in the testServer function? I've set the default timeout to the 10s found elsewhere as the current standard, and it's the same everywhere - unless overwritten in a specific request (as before).

SchrodingersGat commented 1 year ago

@miggland exposing timeout as a global parameter seems like a good idea to me. And 10s is better :)

SchrodingersGat commented 1 year ago

@miggland thanks for the contribution as always!