coin-hive-stratum
coin-hive-stratum copied to clipboard
Automatic connection close?
Hi, I noticed that even if we disconnect all the miners, the /stats
page will still have 1 connection. Is there any way to end the connections automatically if there is no miners?
{
miners: 0,
connections: 1
}
Environment: I am using pm2
to run the proxy, with a proxy.js file.
I don't have any answers on this, but I'm curious as to why this is a problem for you.
@adamdupuis Actually I am just afraid the empty connection will consume more system resource, since the connection should be useless when there is no miners connected.
there use to be a process that purged empty connection but it wasn't working right, so now connections are there forever. It shouldn't be a big problem tho.