coin-hive-stratum icon indicating copy to clipboard operation
coin-hive-stratum copied to clipboard

Automatic connection close?

Open DickyT opened this issue 7 years ago • 3 comments

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.

DickyT avatar Jan 05 '18 02:01 DickyT

I don't have any answers on this, but I'm curious as to why this is a problem for you.

adamdupuis avatar Jan 05 '18 19:01 adamdupuis

@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.

DickyT avatar Jan 06 '18 03:01 DickyT

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.

cazala avatar Jan 07 '18 15:01 cazala