mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
remove kick
This commit is contained in:
parent
9bacd07973
commit
c05a98dca6
@ -97,7 +97,7 @@ func (ws *WServer) SetWriteTimeout(conn *UserConn, timeout int) {
|
||||
func (ws *WServer) writeMsg(conn *UserConn, a int, msg []byte) error {
|
||||
conn.w.Lock()
|
||||
defer conn.w.Unlock()
|
||||
conn.SetWriteDeadline(time.Now().Add(time.Duration(10) * time.Second))
|
||||
conn.SetWriteDeadline(time.Now().Add(time.Duration(60) * time.Second))
|
||||
return conn.WriteMessage(a, msg)
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ func (ws *WServer) MultiTerminalLoginChecker(uid string, platformID int32, newCo
|
||||
if oldConnMap, ok := ws.wsUserToConn[uid]; ok { // user->map[platform->conn]
|
||||
if oldConn, ok := oldConnMap[constant.PlatformIDToName(platformID)]; ok {
|
||||
log.NewWarn(operationID, uid, platformID, "kick old conn begin")
|
||||
ws.sendKickMsg(oldConn, newConn)
|
||||
// ws.sendKickMsg(oldConn, newConn)
|
||||
log.NewWarn(operationID, uid, platformID, "kick old conn end")
|
||||
m, err := db.DB.GetTokenMapByUidPid(uid, constant.PlatformIDToName(platformID))
|
||||
if err != nil && err != redis.ErrNil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user