From 688d697bb715e9b96b15bb64fb1cb4212c2858b1 Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 24 Oct 2014 20:39:29 +0800 Subject: [PATCH] use 4096 for connection read buffer --- server/client_resp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/client_resp.go b/server/client_resp.go index 93edef9..cd5bee3 100644 --- a/server/client_resp.go +++ b/server/client_resp.go @@ -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()