Unverified Commit 54967137 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub

Merge pull request #76 from LaurenceLiZhixin/ori_master

remove read buffer collection
parents 917228c6 fb96d446
......@@ -607,13 +607,7 @@ func (s *session) handleTCPPackage() error {
bufp = gxbytes.GetBytes(maxReadBufLen)
buf = *bufp
// pktBuf = new(bytes.Buffer)
pktBuf = gxbytes.GetBytesBuffer()
defer func() {
gxbytes.PutBytes(bufp)
gxbytes.PutBytesBuffer(pktBuf)
}()
pktBuf = new(bytes.Buffer)
conn = s.Connection.(*gettyTCPConn)
for {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment