I ran into an interesting failure state today, and the stratum proxy, I believe, played a roll in the failure. I posted over in the cgminer thread about the cgminer portion, but wanted to post here about the proxy portion.
Shouldn't the proxy, in some way, tell the clients when it's primary upstream connection dies?
Yes, it should. Let me ask some questions:
a) Are you using latest Windows binary?
b) If you're using Linux, are you sure you ran "setup.py install" or "setup.py develop" after last upgrade?
c) Do you see any error/traceback in the proxy during connection outage?
Proxy should propagate all connection failures to all connected miners immediately. It is implemented in method on_disconnect (
https://github.com/slush0/stratum-mining-proxy/blob/master/mining_proxy.py) and I don't see any reason why it shouldn't work, except ther was another error.