add
This commit is contained in:
parent
ba76acaf87
commit
2ed5548a6f
@ -262,6 +262,8 @@ func (p *Client) AcceptTcpConn(conn *net.TCPConn) {
|
||||
p.sendPacket++
|
||||
p.sendPacketSize += (uint64)(len(mb))
|
||||
}
|
||||
} else {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
}
|
||||
|
||||
if clientConn.fm.GetRecvBufferSize() > 0 {
|
||||
@ -280,6 +282,8 @@ func (p *Client) AcceptTcpConn(conn *net.TCPConn) {
|
||||
clientConn.fm.SkipRecvBuffer(n)
|
||||
tcpActiveSendTime = now
|
||||
}
|
||||
} else {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
}
|
||||
|
||||
diffrecv := now.Sub(clientConn.activeRecvTime)
|
||||
|
@ -227,6 +227,8 @@ func (p *Server) RecvTCP(conn *ServerConn, id string, src *net.IPAddr) {
|
||||
p.sendPacket++
|
||||
p.sendPacketSize += (uint64)(len(mb))
|
||||
}
|
||||
} else {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
}
|
||||
|
||||
if conn.fm.GetRecvBufferSize() > 0 {
|
||||
@ -245,6 +247,8 @@ func (p *Server) RecvTCP(conn *ServerConn, id string, src *net.IPAddr) {
|
||||
conn.fm.SkipRecvBuffer(n)
|
||||
tcpActiveSendTime = now
|
||||
}
|
||||
} else {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
}
|
||||
|
||||
diffrecv := now.Sub(conn.activeRecvTime)
|
||||
|
Loading…
Reference in New Issue
Block a user