use 4096 for connection read buffer

This commit is contained in:
siddontang 2014-10-24 20:39:29 +08:00
parent bae4ed58e4
commit 688d697bb7
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func newClientRESP(conn net.Conn, app *App) {
c.client = newClient(app)
c.conn = conn
c.rb = bufio.NewReaderSize(conn, 256)
c.rb = bufio.NewReaderSize(conn, 4096)
c.resp = newWriterRESP(conn)
c.remoteAddr = conn.RemoteAddr().String()