Coder Social home page Coder Social logo

Comments (4)

emgerner-msft avatar emgerner-msft commented on July 24, 2024

Right now the library supports setting a service-wide timeout by specifying the timeout parameter in the blob service initialization. This is then used in the underlying Python request session for all the APIs. You can set it higher than the default if desired, but note the limitations for the server will still apply.

The current plan for the future version of the library is to not set a default on the service. We will then look at adding timeout to some (the more timeout sensitive) or all APIs. We're still considering exact design, so if you have in mind what you'd like to see ideally we're happy to chat.

from azure-storage-python.

pneumee avatar pneumee commented on July 24, 2024

Setting that timeout doesn't seem to have any affect. I had it set to 300, it still timed out after 25 seconds. Seems like the service-wide setting when creating a BlobService object is client-side, while the timeout setting passed to the API is server-side?

from azure-storage-python.

emgerner-msft avatar emgerner-msft commented on July 24, 2024

Yes, this is correct. The older library sets the timeout you specify on the underlying Python session request (ie, client side). The server timeout will not be set meaning the service defaults I linked to above will be applied on the server. I'll modify the above response to make that clearer.

In the newer version we will set both the server timeout (sent in the query) and a client side timeout on the request (like currently). Sending a server timeout isn't very helpful if the connection is lost for some reason, so the client side timeout is good to have in addition. How these interplay is an interesting design point, and how we want to expose this well is a discussion we're currently having.

from azure-storage-python.

emgerner-msft avatar emgerner-msft commented on July 24, 2024

We have released the 0.30 version (#132) which addresses this feature request.

The timeout parameter supported by the REST API is now exposed for every method in the SDK which makes service calls. Client side timeout is not out yet (still being designed), but my understanding of this initial question is just for server timeout. If you have issues with the new version in regards to this issue, please reopen it and continue the discussion.

from azure-storage-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.