Comments (4)
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.
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.
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.
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)
- QueueServiceClient.get_queue_client does not inherit credentials
- new feature request: adding unix style globbing tool to list files on azure blobs
- https://github.com/Azure/azure-storage-python has no package.swift manifest
- get md5 for blob HOT 1
- BlobClient, BlobServiceClient, ContainerClient cannot be imported HOT 1
- `exists` method for the async blob client leaks file descriptors
- Large File Upload Max_Conncurrenct HOT 1
- How to check if blob is directory
- Please fix mypy issues HOT 5
- ModuleNotFoundError: No module named 'azure.storage.cloudstorageaccount' HOT 2
- Not able to upload bigger files into azure blob container HOT 1
- Cannot import name 'RecoveryServicesBackupClient' from 'azure.mgmt.recoveryservicesbackup' HOT 3
- new version cryptography dependency crashes app
- Streaming blob to client side ?
- Include millisecond component (%f) in datetime serialization
- This repo is missing important files
- How to handle timeout for Uploading a blob in Azure Storage using Python SDK? HOT 1
- ModuleNotFoundError: No module named 'azure.storage'
- problem with python get_file_properties HOT 2
- Create symlink via azure.storage.file FileService
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-storage-python.