Skip to content
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

Update docs with the details of multiple HTTPProviders #2889

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ HTTPProvider
>>> from web3 import Web3
>>> w3 = Web3(Web3.HTTPProvider("http://127.0.0.1:8545"))

Note that you should create only one HTTPProvider per python
process, as the HTTPProvider recycles underlying TCP/IP network connections,
for better performance.
Note that you should create only one HTTPProvider with the same provider URL
per python process, as the HTTPProvider recycles underlying TCP/IP
network connections, for better performance. Multiple HTTPProviders with different
URLs will work as expected.

Under the hood, the ``HTTPProvider`` uses the python requests library for
making requests. If you would like to modify how requests are made, you can
Expand Down
1 change: 1 addition & 0 deletions newsfragments/2889.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add doc blurb about multiple HTTPProviders with the same URL