Thursday, 1 April 2021

Libcloud Storage - How to specify the requests timeouts?

I use the Libcloud 3.3.1 python library to download objects from an Openstack swift provider.

When using the requests package, one can specify the connect and read timeouts to avoid getting stuck when retrieving a file.

Is it posssible to define such timeouts in the Libcloud package? I know I can give a timeout in the connection arguments but that doesn't seem to do what I want (it is a retry timeout).

I also have been thinking about using the signal package and this reply, but once again this is not exactly what I want and I would like to avoid doing such things.



from Libcloud Storage - How to specify the requests timeouts?

No comments:

Post a Comment