perf: adjust default receive window sizes

This commit is contained in:
Toby 2022-11-18 19:59:19 -08:00
parent 589f4a8256
commit c7a87b2c43

View file

@ -16,8 +16,9 @@ const (
DefaultALPN = "hysteria"
DefaultStreamReceiveWindow = 15728640 // 15 MB/s
DefaultConnectionReceiveWindow = 67108864 // 64 MB/s
DefaultStreamReceiveWindow = 16777216 // 16 MB
DefaultConnectionReceiveWindow = DefaultStreamReceiveWindow * 5 / 2 // 40 MB
DefaultMaxIncomingStreams = 1024
DefaultMMDBFilename = "GeoLite2-Country.mmdb"