This commit is contained in:
esrrhs committed 2019-10-23 20:36:13 +08:00
1 parent a72544515e
commit 14315b85ab
3 files changed
+191 -52

No files matched your search

+2 -2
View File
@@ -204,7 +204,6 @@ func (p *Client) AcceptTcp() error {
func (p *Client) AcceptTcpConn(conn *net.TCPConn) {
now := time.Now()
uuid := UniqueId()
tcpsrcaddr := conn.RemoteAddr().(*net.TCPAddr)
@@ -243,6 +242,7 @@ func (p *Client) AcceptTcpConn(conn *net.TCPConn) {
sendlist := clientConn.fm.getSendList()
now := time.Now()
clientConn.activeTime = now
for e := sendlist.Front(); e != nil; e = e.Next() {
@@ -251,7 +251,7 @@ func (p *Client) AcceptTcpConn(conn *net.TCPConn) {
mb, err := proto.Marshal(&f)
if err != nil {
loggo.Error("Error tcp Marshal %s %s %s", uuid, tcpsrcaddr.String(), err)
break
continue
}
p.sequence++