From e6c68194adc90776d9cba6ba2847e02641349d64 Mon Sep 17 00:00:00 2001 From: NI Date: Wed, 14 Aug 2019 08:15:01 +0800 Subject: [PATCH] Change cipherRWBufferSize to match the one on the client, so we don't run cipher that often (Adds overhead). --- application/controller/socket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controller/socket.go b/application/controller/socket.go index 8188949..a10fa32 100644 --- a/application/controller/socket.go +++ b/application/controller/socket.go @@ -349,7 +349,7 @@ func (s socket) Get( } // Start service - const cipherReadBufSize = 1024 + const cipherReadBufSize = 4096 cipherReadBuf := [cipherReadBufSize]byte{} cipherWriteBuf := [cipherReadBufSize]byte{}