Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tidb-server/server/packetio.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ type packetIO struct {

func newPacketIO(conn net.Conn) *packetIO {
p := &packetIO{
rb: bufio.NewReaderSize(conn, 2048),
wb: bufio.NewWriterSize(conn, 2048),
rb: bufio.NewReaderSize(conn, 8192),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using a const may be better.

wb: bufio.NewWriterSize(conn, 8192),
}

return p
Expand Down