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
2019-08-14 08:15:01 +08:00
parent 65e35460df
commit e6c68194ad

View File

@@ -349,7 +349,7 @@ func (s socket) Get(
} }
// Start service // Start service
const cipherReadBufSize = 1024 const cipherReadBufSize = 4096
cipherReadBuf := [cipherReadBufSize]byte{} cipherReadBuf := [cipherReadBufSize]byte{}
cipherWriteBuf := [cipherReadBufSize]byte{} cipherWriteBuf := [cipherReadBufSize]byte{}