Change cipherRWBufferSize to match the one on the client, so we don't run cipher that often (Adds overhead).

This commit is contained in:
NI committed 2019-08-14 08:15:01 +08:00
1 parent 65e35460df
commit e6c68194ad
1 file changed
+1 -1
+1 -1
View File
@@ -349,7 +349,7 @@ func (s socket) Get(
}
// Start service
const cipherReadBufSize = 1024
const cipherReadBufSize = 4096
cipherReadBuf := [cipherReadBufSize]byte{}
cipherWriteBuf := [cipherReadBufSize]byte{}