cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
416 stars 465 forks source link

error handling when connection closed to pool #158

Open jimmy-tfp opened 6 years ago

jimmy-tfp commented 6 years ago

Hi,

I am getting "connection closed" errors after running the proxy for ~10-20hrs. It must be from this:

2018-02-20 10:11: socket closed (x) 2018-02-20 10:11: connection closed (x)

line 74, connection.ts console.log(socket closed (${this.host}:${this.port})); this.emit("close");

then,

line 253, proxy.ts connection.on("close", () => { console.log(connection closed (${connectionId})); });

After that, no more shares get accepted by the pool.

Thanks