Skip to content

Commit

Permalink
Onishin's keepalive function:
Browse files Browse the repository at this point in the history
Add methode keepalived for prevent timeout
Use with mod cpu-miner 
perl5577/cpuminer-multi@0c8aedb
  • Loading branch information
clintar committed Mar 26, 2016
1 parent 674a200 commit d7b2d9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ function handleMinerMethod(method, params, ip, portData, sendReply, pushMessage)

sendReply(null, {status: 'OK'});
break;
case 'keepalived' :
miner.heartbeat()
sendReply(null, { status:'KEEPALIVED'
});
break;
default:
sendReply("invalid method");
var minerText = miner ? (' ' + miner.login + '@' + miner.ip) : '';
Expand Down

0 comments on commit d7b2d9a

Please sign in to comment.