Open mbello opened 5 years ago
There's 2 ways right now to customize the timeout:
import socket; socket.setdefaulttimeout(10)
https://docs.python.org/3/library/socket.html#socket.setdefaulttimeoutMaybe I'll add an optional argument to the Client as well, as an enhancement.
The tricky part is that odooly.Client
uses either urllib.request
or xmlrpc.client
or requests
depending on the context and the configuration.
Hi, thanks for odooly!
I am experienced with odoorpc and immediatelly I missed the timeout parameter when setting the connection parameters. Some requests take quite long and it is important to have a configurable timeout.