Sitelet https://github.com/jgarzik/python-bitcoinrpc/commit/95bb5c012d53e2c55487f35d57e596a913f32d4a
Skip to content

Commit 95bb5c0

Browse files
authored
Merge pull request #90 from matmaer/master
Update README.rst
2 parents a33376e + 3e22637 commit 95bb5c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎README.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,12 @@ Produces output on stderr like
6868
DEBUG:BitcoinRPC:-1-> getinfo []
6969
DEBUG:BitcoinRPC:<-1- {"connections": 8, ...etc }
7070

71+
Socket timeouts under heavy load
72+
================================
73+
Pass the timeout argument to prevent "socket timed out" exceptions:
74+
75+
.. code:: python
76+
77+
rpc_connection = AuthServiceProxy(
78+
"http://%s:%s@%s:%s"%(rpc_user, rpc_password, rpc_host, rpc_port),
79+
timeout=120)

0 commit comments

Comments
 (0)