From 32b595045f652dd2f851c7a7de20a955c6126c3b Mon Sep 17 00:00:00 2001 From: Sammy Libre Date: Sun, 7 Aug 2016 08:11:10 +0500 Subject: [PATCH] Reset conn deadline on broadcast --- go-pool/stratum/handlers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go-pool/stratum/handlers.go b/go-pool/stratum/handlers.go index 377fa02..573eb7d 100644 --- a/go-pool/stratum/handlers.go +++ b/go-pool/stratum/handlers.go @@ -107,6 +107,8 @@ func (s *StratumServer) broadcastNewJobs() { if err != nil { log.Printf("Job transmit error to %v@%v: %v", miner.Login, miner.IP, err) s.removeMiner(miner.Id) + } else { + s.setDeadline(miner.Session.conn) } }(m.Val) }