mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 09:12:12 +08:00
fix several race condition, change slide window max size 2G to 32M, add buffer release
This commit is contained in:
1 parent
bd87864e26
commit
9bb8230fc1
5 files changed
+129
-59
No files matched your search
+2
-1
@@ -49,5 +49,6 @@ const (
|
||||
MUX_PING_RETURN
|
||||
MUX_PING int32 = -1
|
||||
MAXIMUM_SEGMENT_SIZE = PoolSizeWindow
|
||||
MAXIMUM_WINDOW_SIZE = 1<<31 - 1
|
||||
MAXIMUM_WINDOW_SIZE = 1 << 25 // 1<<31-1 TCP slide window size is very large,
|
||||
// we use 32M, reduce memory usage
|
||||
)
|
||||
Reference in new issue
Block a user