Skip to content

Commit 18e2839

Browse files
committed
XHTTP client: Reduce default maxConnections from 6 to 3 for anti-TSPU
#6376 (comment) Replaces 18b85ad
1 parent 6ab123b commit 18e2839

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎infra/conf/transport_method.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
450450
return nil, errors.New("maxConnections cannot be specified together with maxConcurrency")
451451
}
452452
if c.Xmux == (XmuxConfig{}) {
453-
c.Xmux.MaxConnections.From = 6
454-
c.Xmux.MaxConnections.To = 6
453+
c.Xmux.MaxConnections.From = 3
454+
c.Xmux.MaxConnections.To = 3
455455
c.Xmux.HMaxRequestTimes.From = 600
456456
c.Xmux.HMaxRequestTimes.To = 900
457457
c.Xmux.HMaxReusableSecs.From = 1800

0 commit comments

Comments
 (0)