Comments (10)
We configure timeouts and headers very carefully in order to maintain proper request signature, external session object may breaks things...
from aiobotocore.
IMHO this would not bode well with how botocore works, botocore has several Config
options to handle pool size, etc per client, not per session. See:
max_pool_connections
: https://github.com/boto/botocore/blob/develop/botocore/config.py#L52read_timeout
: https://github.com/boto/botocore/blob/develop/botocore/config.py#L41connect_timeout
: https://github.com/boto/botocore/blob/develop/botocore/config.py#L36- SSL
verify
: https://github.com/boto/botocore/blob/develop/botocore/client.py#L58
we already use these to configure aiohttp, having users able to specify an aiohttp instance would break this contract.
we allow for setting aiohttp TCPConnector params via AioConfig
see: https://github.com/aio-libs/aiobotocore/blob/master/aiobotocore/config.py#L37
from aiobotocore.
do you still feel strongly about this? If not let's close this.
from aiobotocore.
I'd still rather be able to pass in a whole aiohttp ClientSession.
from aiobotocore.
what is your response to my first comment? @jettify what do you think?
from aiobotocore.
when passing the actual session you could raise an exception if any of the other config variables were non None.
from aiobotocore.
there are defaults for all those even if you don't specify them
from aiobotocore.
also as botocore doesn't allow you to do this, why should aiobotocore
from aiobotocore.
@thehesiod I'd like botocore to do it too, but I don't use it.
from aiobotocore.
Closing issue for now, looks like we are not going to implement this.
from aiobotocore.
Related Issues (20)
- drop aiobotocore prefix from releases HOT 4
- Add link to upstream diff to PR template
- Add new version compatible with airflow 2.5.1 HOT 7
- Aiohttp connection leak
- Support botocore>=1.33.2 HOT 2
- Proxy not working due to signature mismatch HOT 4
- AttributeError: 'S3' object has no attribute 'upload_file'" when calling upload_file on s3 client HOT 2
- S3 Express Session opened for all asyncio calls HOT 4
- 2.10.0 release failed HOT 1
- Support `botocore==1.34.27` HOT 3
- Support for botocore 1.34.33 HOT 1
- Is Session/Client thread or asyncio safe? HOT 3
- Botocore max dependency range HOT 3
- Bump botocore to at least 1.34.40 HOT 5
- support botocore-1.34.53? HOT 3
- Signed urls generated by aiobotocore.signers.AioRequestSigner rejected by AWS HOT 2
- Instance of `StreamingBody` returns `True` for `isinstance` `Iterable` check HOT 4
- Aiobotocore with latest moto server HOT 1
- 2.12.3: pytest fails HOT 3
- 2.12.3: pep517 build and sphinx warnings
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 aiobotocore.