Stratehm / stratum-proxy

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.
GNU General Public License v3.0
200 stars 117 forks source link

Nicehash issue -- Too many connections on pool 1 - sending error and close connection. #111

Open ma7555 opened 5 years ago

ma7555 commented 5 years ago

Hello,

Receiving error when more than one connection is started by NH. I have set max workers to 1 as it will not connect otherwise. How do you get to make it work with NH?

2018-10-05 22:00:33,173 INFO [169.51.48.162-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New WorkerConnection 169.51.48.162 subscribed. 1 connections active on pool 1. 2018-10-05 22:00:34,570 INFO [StratumProxyManagerSeverSocketListener]:strat.mining.stratum.proxy.manager.ProxyManager$1 - New connection on /#####:3333 from /169.51.48.162:46229. 2018-10-05 22:00:34,670 INFO [169.51.48.162-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New WorkerConnection 169.51.48.162 subscribed. 2 connections active on pool 1. 2018-10-05 22:00:34,671 ERROR [169.51.48.162-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Too many connections on pool 1 for the connection 169.51.48.162. Sending error and close the connection.

Tillkoeln commented 5 years ago

"workerNumberLimit": 1, // Only 1, 256 and 65536 values are supported.