jgarzik / python-bitcoinrpc

Python interface to bitcoin's JSON-RPC API
GNU Lesser General Public License v2.1
642 stars 307 forks source link

HTTP persistent connection don't reconnect to bitcoind if server dies/re... #24

Open legkodymov opened 10 years ago

legkodymov commented 10 years ago

If bitcoind dies/restarts - library fails to reconnect. I understand that it breaks advantage of persistent connection. But in my case this is the only way to go (in eloipool). I can rewrite this patch to look more clear if needed.

luke-jr commented 9 years ago

This breaks connection reuse, and has a messy print() in it.

laanwj commented 8 years ago

This is how we solved it for the bitcoin tests: https://github.com/bitcoin/bitcoin/blob/master/qa/rpc-tests/test_framework/authproxy.py#L122

Needs to be handled for Python <3.5 and >=3.5 differently. See: