That's why I temporarily dropped KlausT's miner until the issue is fixed. The rig occasionally stands idle until MPM changes the algo.
The issue is partially in the miner because it doesn't retry automatically but the server doesn't respond either. It is quite sad to be forced to stop a highly profitable miner.
Did you ever try -R 1? This would make the timeout only 1 second as oppose to the default of 30. Though it would do nothing about the server...
Just tried it, no change. It looks like that the server doesn't respond to the connection handshake and the miner just stands idle.
PS C:\Users\nitrous\Desktop\1060\Bin\NVIDIA-KlausT> .\ccminer.exe -d 0,4 -a neoscrypt -o stratum+tcp://hub.miningpoolhub.com:17012 -u redacted.red -p x --debug --protocol-dump
ccminer 8.11-KlausT (64bit) for nVidia GPUs
Compiled with Visual Studio 2015 using Nvidia CUDA Toolkit 8.0
Based on pooler cpuminer 2.3.2 and the tpruvot@github fork
CUDA support by Christian Buchner, Christian H. and DJM34
Includes optimizations implemented by sp-hash, klaust, tpruvot and tsiv.
[2017-08-04 22:32:06] using libcurl 7.54.0
[2017-08-04 22:32:06] libcurl supports IPv6
[2017-08-04 22:32:06] libcurl supports SSL
[2017-08-04 22:32:06] libcurl supports international domain names
[2017-08-04 22:32:08] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:17012
[2017-08-04 22:32:08] restart_threads
* Rebuilt URL to: http://hub.miningpoolhub.com:17012/
* Trying 34.224.196.33...
* TCP_NODELAY set
[2017-08-04 22:32:08] Device 1309221592: nvmlDeviceSetAPIRestriction() failed: Insufficient Permissions
[2017-08-04 22:32:08] Device 1309305648: nvmlDeviceSetAPIRestriction() failed: Insufficient Permissions
[2017-08-04 22:32:08] Device 1309389704: nvmlDeviceSetAPIRestriction() failed: Insufficient Permissions
[2017-08-04 22:32:08] Device 1309473760: nvmlDeviceSetAPIRestriction() failed: Insufficient Permissions
[2017-08-04 22:32:08] Device 1309557816: nvmlDeviceSetAPIRestriction() failed: Insufficient Permissions
[2017-08-04 22:32:08] CUDA GPU 0 matches NVML GPU 2 by busId 3
[2017-08-04 22:32:08] CUDA GPU 1 matches NVML GPU 0 by busId 1
[2017-08-04 22:32:08] CUDA GPU 2 matches NVML GPU 1 by busId 2
[2017-08-04 22:32:08] CUDA GPU 3 matches NVML GPU 3 by busId 7
[2017-08-04 22:32:08] CUDA GPU 4 matches NVML GPU 4 by busId 8
[2017-08-04 22:32:08] NVML GPU monitoring enabled.
[2017-08-04 22:32:08] 2 miner threads started, using 'neoscrypt' algorithm.
[2017-08-04 22:32:08] Binding thread 0 to cpu 0 (mask 1)
[2017-08-04 22:32:08] Binding thread 1 to cpu 1 (mask 2)
[2017-08-04 22:32:08] GPU #0: waiting for data
* Connected to hub.miningpoolhub.com (34.224.196.33) port 17012 (#0)
* Connection #0 to host hub.miningpoolhub.com left intact
[2017-08-04 22:32:08] > {"id": 1, "method": "mining.subscribe", "params": ["ccminer/8.11-KlausT"]}
[2017-08-04 22:32:11] GPU #0: waiting for data
[2017-08-04 22:32:14] GPU #0: waiting for data
[2017-08-04 22:32:17] GPU #0: waiting for data
[2017-08-04 22:32:18] stratum_subscribe timed out
[2017-08-04 22:32:18] ...retry after 10 seconds
The same happens with TPruvot's fork but it manages to retry until there's a successful connection. There is something wrong with MPH's servers because it rejects the subscribe requests.
PS C:\Users\nitrous\Desktop\1060\Bin\NVIDIA-TPruvot> .\ccminer-x64.exe -d 0,4 -a neoscrypt -o stratum+tcp://hub.miningpoolhub.com:17012 -u whatever.what -p x --debug --protocol-dump -R 1
*** ccminer 2.0 for nVidia GPUs by tpruvot@github ***
Built with VC++ 2013 and nVidia CUDA SDK 8.0 64-bits
Originally based on Christian Buchner and Christian H. project
Include some algos from alexis78, djm34, sp, tsiv and klausT.
BTC donation address: 1AJdfCpLWPNoAMDfHF1wD5y8VgKSSTHxPo (tpruvot)
[2017-08-10 10:16:17] POOL 0: hub.miningpoolhub.com:17012 USER whatever.what -s 10
[2017-08-10 10:16:17] Starting on stratum+tcp://hub.miningpoolhub.com:17012
[2017-08-10 10:16:17] restart_threads
* Rebuilt URL to: http://hub.miningpoolhub.com:17012/
* Hostname was NOT found in DNS cache
* Trying 34.195.216.28...
* TCP_NODELAY set
[2017-08-10 10:16:17] CUDA GPU 0 matches NVML GPU 2 by busId 3
[2017-08-10 10:16:17] CUDA GPU 1 matches NVML GPU 0 by busId 1
[2017-08-10 10:16:17] CUDA GPU 2 matches NVML GPU 1 by busId 2
[2017-08-10 10:16:17] CUDA GPU 3 matches NVML GPU 3 by busId 7
[2017-08-10 10:16:17] CUDA GPU 4 matches NVML GPU 4 by busId 8
[2017-08-10 10:16:17] NVML GPU monitoring enabled.
[2017-08-10 10:16:17] CUDA GPU 0 matches NVAPI GPU 0 by busId 3
[2017-08-10 10:16:17] CUDA GPU 1 matches NVAPI GPU 1 by busId 1
[2017-08-10 10:16:17] CUDA GPU 2 matches NVAPI GPU 2 by busId 2
[2017-08-10 10:16:17] CUDA GPU 3 matches NVAPI GPU 3 by busId 7
[2017-08-10 10:16:17] CUDA GPU 4 matches NVAPI GPU 4 by busId 8
[2017-08-10 10:16:17] NVAPI GPU monitoring enabled.
[2017-08-10 10:16:17] 2 miner threads started, using 'neoscrypt' algorithm.
[2017-08-10 10:16:17] Binding thread 0 to cpu 0 (mask 1)
[2017-08-10 10:16:17] Binding thread 1 to cpu 1 (mask 2)
* Connected to hub.miningpoolhub.com (34.195.216.28) port 17012 (#0)
* Connection #0 to host hub.miningpoolhub.com left intact
[2017-08-10 10:16:17] > {"id": 1, "method": "mining.subscribe", "params": ["ccminer/2.0"]}
[2017-08-10 10:16:17] stratum_recv_line failed
[2017-08-10 10:16:17] ...retry after 1 seconds
[2017-08-10 10:16:18] sleeptime: 500 ms
[2017-08-10 10:16:18] sleeptime: 500 ms
[2017-08-10 10:16:18] restart_threads
* Rebuilt URL to: http://hub.miningpoolhub.com:17012/
Perhaps it refuses connection if there was another successful connection from the same IP within a given period of time?