First of all, thank you for all your work on this project!
I'm having an issue with decred/longpoll and the program not exiting when the connection is interrupted or dropped. Here's an example:
C:\ccminer-tpruvot>ccminer -a decred -d 0,2 -r 0 -o http://localhost:12345 -O user:pass
*** ccminer 1.7.2 for nVidia GPUs by tpruvot@github ***
Built with VC++ 2013 and nVidia CUDA SDK 7.5
Originally based on Christian Buchner and Christian H. project
Include some of the work of djm34, sp, tsiv and klausT.
BTC donation address: 1AJdfCpLWPNoAMDfHF1wD5y8VgKSSTHxPo (tpruvot)
[2016-02-12 20:18:40] NVML GPU monitoring enabled.
[2016-02-12 20:18:40] 2 miner threads started, using 'decred' algorithm.
[2016-02-12 20:18:41] HTTP request failed: Failed to connect to localhost port 12345: Connection refused
[2016-02-12 20:18:41] get_work json_rpc_call failed
[2016-02-12 20:22:01] CTRL_C_EVENT received, exiting
Obviously a bogus pool address here, so connection refused, but the same thing happens with live pools if the connection gets interrupted. I waited about 3 minutes in this example before killing it, but it hung for several hours last night. Have to use Ctrl+C or close the terminal window to exit. Since the program never exits, failover pools never get contacted, which means lost mining time.
I've tried setting retries > 0 and the retries function properly but after the final retry, the same thing happens. Using multiple pools with failover is similar; it tries to failover but never succeeds.
I have a feeling it has something to do with longpoll; with stratum connections, the workio thread always gets terminated and the program exits. I'm hoping there's some way to work around it!
Any help you can provide would be greatly appreciated! Thanks again.