Skip to content

Commit

Permalink
server: Increase buffer size of reader and writer
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut committed Nov 17, 2015
1 parent f49d073 commit ad043f3
Showing 1 changed file with 2 additions and 2 deletions.
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),
wb: bufio.NewWriterSize(conn, 8192),
}

return p
Expand Down

0 comments on commit ad043f3

Please sign in to comment.