feature: Makes "ConnStandardMaxBufSize" less.

This makes "ConnStandardMaxBufSize" less, because, according to tests,
it doesn't matter if it's 2 times. 65535 works fine on its own.

Anything less than 65535 is dangerous, however. The maximum packet size
in TCP is 64k, so if the maximum buffer size is less than that, it could
cause issues, depending on the application.
This commit is contained in:
greysoh 2024-10-19 16:48:16 -04:00
parent 6370948de4
commit 412ed6bb77
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -9,8 +9,8 @@ import (
"time"
)
// Give it 2x the max size for a TCP packet
var ConnStandardMaxBufSize = (65535 * 2)
// Max size for a TCP packet
var ConnStandardMaxBufSize = 65535
var CryptHeader = 43
// Wild