Open legkodymov opened 10 years ago
This breaks connection reuse, and has a messy print() in it.
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:
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.