修复续推时的内存泄露

This commit is contained in:
langhuihui
2023-04-19 13:23:31 +08:00
parent 4b8c93fdfc
commit ac4de208b8
2 changed files with 21 additions and 2 deletions

View File

@@ -45,8 +45,8 @@ const (
)
type NetConnection struct {
*bufio.Reader `json:"-"`
net.Conn `json:"-"`
*bufio.Reader `json:"-" yaml:"-"`
net.Conn `json:"-" yaml:"-"`
bandwidth uint32
readSeqNum uint32 // 当前读的字节
writeSeqNum uint32 // 当前写的字节