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:
parent
6370948de4
commit
412ed6bb77
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue