mirror of https://github.com/ledisdb/ledisdb.git
use 4096 for connection read buffer
This commit is contained in:
parent
bae4ed58e4
commit
688d697bb7
|
@ -33,7 +33,7 @@ func newClientRESP(conn net.Conn, app *App) {
|
||||||
c.client = newClient(app)
|
c.client = newClient(app)
|
||||||
c.conn = conn
|
c.conn = conn
|
||||||
|
|
||||||
c.rb = bufio.NewReaderSize(conn, 256)
|
c.rb = bufio.NewReaderSize(conn, 4096)
|
||||||
|
|
||||||
c.resp = newWriterRESP(conn)
|
c.resp = newWriterRESP(conn)
|
||||||
c.remoteAddr = conn.RemoteAddr().String()
|
c.remoteAddr = conn.RemoteAddr().String()
|
||||||
|
|
Loading…
Reference in New Issue