Skip to content

Connector now uses a requests Session, can have a pool #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

igorecarrasco
Copy link

Adds a requests Session to the connector, allowing the use of a pool and more rational management of HTTP connections.

Adds an extra optional parameter to the connector init method: pool will allow users to instantiate larger pools than the default (10, defined at module level). This can be good for multithreaded use.

* makes everything nice and async

* actually runs teardown

* adds a requests session to the connector, with optional Pool parameter

* ignore dependency management

* getting it back to the initial repo state

Co-authored-by: Carrasco <icarrasco@LT-76939.local>
@jjbankert
Copy link
Contributor

Hey @igorecarrasco interesting idea! I'll take some time to review the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants