Skip to content

Commit

Permalink
release read buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ppzqh committed Feb 4, 2025
1 parent 28d0fc1 commit 1a3e677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/remote/trans/gonet/trans_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (ts *transServer) BootstrapServer(ln net.Listener) (err error) {
defer func() {
transRecover(ctx, conn, "OnRead")
}()
bc := newBufioConn(conn)
bc := conn //newBufioConn(conn)
ctx, err = ts.transHdlr.OnActive(ctx, bc)
if err != nil {
klog.CtxErrorf(ctx, "KITEX: OnActive error=%s", err)
Expand Down Expand Up @@ -166,7 +166,7 @@ type bufioConn struct {
func newBufioConn(c net.Conn) *bufioConn {
return &bufioConn{
conn: c,
r: netpoll.NewReader(c),
r: netpoll.NewReaderReuseBuffer(c),
}
}

Expand Down

0 comments on commit 1a3e677

Please sign in to comment.