Skip to content

Use connection pooling via requests.Session#33

Merged
tryptichon merged 8 commits intomasterfrom
connection_pooling
Jan 28, 2022
Merged

Use connection pooling via requests.Session#33
tryptichon merged 8 commits intomasterfrom
connection_pooling

Conversation

@tryptichon
Copy link
Copy Markdown
Contributor

No description provided.

@tryptichon tryptichon requested a review from e1my January 27, 2022 21:23
Copy link
Copy Markdown

@e1my e1my left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should work. mount() is not thread safe but it is up to the user to guarantee the constructor is called in a safe manner.

* Set pool_connections=1
* Use root_url for mount()
* Added information about requests.Session and
  the pool_maxsize.
* Added option `pool_block` to block any connections that would
  exceed the `pool_maxsize`.
@tryptichon tryptichon merged commit 725f7e7 into master Jan 28, 2022
@tryptichon tryptichon deleted the connection_pooling branch January 28, 2022 14:30
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