mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-14 01:54:26 +08:00
merge develop/tom
This commit is contained in:
parent
9bb769a2eb
commit
59b9954053
@ -179,7 +179,7 @@ func (c *websocketClientConn) onReadTextMessage(buf []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *websocketClientConn) pingHandler(appData string) error {
|
func (c *websocketClientConn) pingHandler(appData string) error {
|
||||||
log.ZWarn(context.Background(), "ping handler recv ping", nil, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
//log.ZWarn(context.Background(), "ping handler recv ping", nil, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
||||||
if err := c.setReadDeadline(); err != nil {
|
if err := c.setReadDeadline(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -187,7 +187,7 @@ func (c *websocketClientConn) pingHandler(appData string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZWarn(context.Background(), "ping handler write pong error", err, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
log.ZWarn(context.Background(), "ping handler write pong error", err, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
||||||
}
|
}
|
||||||
log.ZWarn(context.Background(), "ping handler write pong success", nil, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
//log.ZWarn(context.Background(), "ping handler write pong success", nil, "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user