cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
688 stars 303 forks source link

Program dont exit when timeout #103

Closed Singman33 closed 8 years ago

Singman33 commented 10 years ago

Launch cudaminer.exe with "cudaminer.exe --retries=3 --retry-pause=5". When reaching the 3rd timeout for the pool, program is waiting for closing thread and never exit, wait forever.

cbuchner1 commented 10 years ago

I think the workers are trying to get work from the stratum (or getwork thread) while this thread has already exited and triggered the main thread to wait for termination of the workers.

Classical deadlock situation. ;) I will try to fix it.

Christian

2014-02-21 11:59 GMT+01:00 Singman33 notifications@github.com:

Launch cudaminer.exe with "cudaminer.exe --retries=3 --retry-pause=5". When reaching the 3rd timeout for the pool, program is waiting for closing thread and never exit, wait forever.

Reply to this email directly or view it on GitHubhttps://github.com/cbuchner1/CudaMiner/issues/103 .

Singman33 commented 10 years ago

Messages in output window if that can help : [2014-02-21 14:08:03] Stratum connection failed: Failed connect to eu.maxcoinpoo l.com:4000; No error [2014-02-21 14:08:03] ...retry after 5 seconds [2014-02-21 14:08:27] stratum_recv_line failed [2014-02-21 14:08:27] ...retry after 5 seconds [2014-02-21 14:08:52] stratum_recv_line failed [2014-02-21 14:08:52] ...terminating workio thread [2014-02-21 14:08:52] workio thread dead, waiting for workers...

skunk73 commented 10 years ago

yes please, look into this... this issue prevents me to implement a script failover that restarts the miner when exiting because pool's failure...