mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 03:13:15 +08:00
chore: add ping Handler debug log in mgsGateway.
This commit is contained in:
parent
dcc0b57382
commit
6f750aad01
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user