python-bitcoinrpc icon indicating copy to clipboard operation
python-bitcoinrpc copied to clipboard

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

Open legkodymov opened this issue 11 years ago • 2 comments
trafficstars

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.

legkodymov avatar Nov 25 '13 21:11 legkodymov

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

luke-jr avatar Apr 03 '15 05:04 luke-jr

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:

  • https://github.com/bitcoin/bitcoin/pull/8139
  • https://github.com/bitcoin/bitcoin/commit/ddf98d1d84343f2db0502a85628ef80f2ec57dbd

laanwj avatar Sep 26 '16 15:09 laanwj