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