mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Stager first ping from server and suppress pings if a ping was received.
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -1609,8 +1609,8 @@ func (s *Server) createClient(conn net.Conn) *client {
|
||||
|
||||
// Do final client initialization
|
||||
|
||||
// Set the Ping timer
|
||||
c.setPingTimer()
|
||||
// Set the First Ping timer.
|
||||
c.setFirstPingTimer(opts.PingInterval)
|
||||
|
||||
// Spin up the read loop.
|
||||
s.startGoRoutine(func() { c.readLoop() })
|
||||
|
||||
Reference in New Issue
Block a user