Selaa lähdekoodia

XHTTP client: Change default `maxConcurrency` to 1 for speed testing

https://t.me/projectXray/4386271
RPRX 6 päivää sitten
vanhempi
sitoutus
9cc7907234
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      infra/conf/transport_internet.go

+ 2 - 2
infra/conf/transport_internet.go

@@ -289,8 +289,8 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
 		return nil, errors.New("maxConnections cannot be specified together with maxConcurrency")
 	}
 	if c.Xmux == (XmuxConfig{}) {
-		c.Xmux.MaxConcurrency.From = 16
-		c.Xmux.MaxConcurrency.To = 32
+		c.Xmux.MaxConcurrency.From = 1
+		c.Xmux.MaxConcurrency.To = 1
 		c.Xmux.HMaxRequestTimes.From = 600
 		c.Xmux.HMaxRequestTimes.To = 900
 		c.Xmux.HMaxReusableSecs.From = 1800