1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-03 06:30:42 +00:00

update default in-fligh size

This commit is contained in:
Darien Raymond 2016-08-24 07:50:33 +02:00
parent 98025e1457
commit a9da266bf9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -34,7 +34,7 @@ func (this *Config) GetAuthenticator() (internet.Authenticator, error) {
func (this *Config) GetSendingInFlightSize() uint32 {
size := this.UplinkCapacity * 1024 * 1024 / this.Mtu / (1000 / this.Tti) / 2
if size == 0 {
if size < 8 {
size = 8
}
return size
@ -50,7 +50,7 @@ func (this *Config) GetSendingQueueSize() uint32 {
func (this *Config) GetReceivingWindowSize() uint32 {
size := this.DownlinkCapacity * 1024 * 1024 / this.Mtu / (1000 / this.Tti) / 2
if size == 0 {
if size < 8 {
size = 8
}
return size