chore: add ping Handler debug log in mgsGateway.

This commit is contained in:
Monet Lee 2024-07-17 17:13:12 +08:00
parent dcc0b57382
commit 6f750aad01

View File

@ -96,11 +96,13 @@ func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, longConnServer
c.hbCtx, c.hbCancel = context.WithCancel(c.ctx)
}
func (c *Client) pingHandler(_ string) error {
func (c *Client) pingHandler(appData string) error {
if err := c.conn.SetReadDeadline(pongWait); err != nil {
return err
}
log.ZDebug(c.ctx, "ping Handler Success.", "pong appData", appData)
return c.writePongMsg()
}