Skip to content

Commit 9cc7907

Browse files
authored
XHTTP client: Change default maxConcurrency to 1 for speed testing
https://t.me/projectXray/4386271
1 parent 21a9658 commit 9cc7907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/conf/transport_internet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
289289
return nil, errors.New("maxConnections cannot be specified together with maxConcurrency")
290290
}
291291
if c.Xmux == (XmuxConfig{}) {
292-
c.Xmux.MaxConcurrency.From = 16
293-
c.Xmux.MaxConcurrency.To = 32
292+
c.Xmux.MaxConcurrency.From = 1
293+
c.Xmux.MaxConcurrency.To = 1
294294
c.Xmux.HMaxRequestTimes.From = 600
295295
c.Xmux.HMaxRequestTimes.To = 900
296296
c.Xmux.HMaxReusableSecs.From = 1800

0 commit comments

Comments
 (0)