1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-12 07:29:12 -04:00

receiving queue

This commit is contained in:
v2ray
2016-06-30 14:51:49 +02:00
parent a6649fa0ff
commit a1f5839461
4 changed files with 145 additions and 127 deletions

View File

@@ -7,6 +7,7 @@ type Config struct {
DownlinkCapacity uint32
Congestion bool
WriteBuffer uint32
ReadBuffer uint32
}
func (this *Config) Apply() {
@@ -37,6 +38,7 @@ func DefaultConfig() Config {
DownlinkCapacity: 20,
Congestion: false,
WriteBuffer: 8 * 1024 * 1024,
ReadBuffer: 8 * 1024 * 1024,
}
}