change window calculation

This commit is contained in:
ffdfgdfg
2020-01-02 23:47:27 +08:00
parent a0a2cd1d47
commit f5fce6d1f4
5 changed files with 21 additions and 90 deletions

View File

@@ -49,6 +49,6 @@ const (
MUX_PING_RETURN
MUX_PING int32 = -1
MAXIMUM_SEGMENT_SIZE = PoolSizeWindow
MAXIMUM_WINDOW_SIZE = 1 << 25 // 1<<31-1 TCP slide window size is very large,
// we use 32M, reduce memory usage
MAXIMUM_WINDOW_SIZE = 1 << 27 // 1<<31-1 TCP slide window size is very large,
// we use 128M, reduce memory usage
)