Skip to content

Commit 33e8768

Browse files
vyzomarten-seemann
authored andcommitted
adjust circuit protocol limits to give some room for the client
1 parent 3a508fb commit 33e8768

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

limits.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ func SetDefaultServiceLimits(limiter *rcmgr.BasicLimiter) {
111111
setProtocolLimits(limiter, circuit.ProtoIDv1,
112112
limiter.DefaultProtocolLimits.
113113
WithMemoryLimit(1, 4<<20, 64<<20).
114-
WithStreamLimit(1024, 1024, 1024),
114+
WithStreamLimit(1280, 1280, 1280),
115115
peerLimit(128, 128, 128))
116116
setProtocolLimits(limiter, circuit.ProtoIDv2Hop,
117117
limiter.DefaultProtocolLimits.
118118
WithMemoryLimit(1, 4<<20, 64<<20).
119-
WithStreamLimit(1024, 1024, 1024),
119+
WithStreamLimit(1280, 1280, 1280),
120120
peerLimit(128, 128, 128))
121121
setProtocolLimits(limiter, circuit.ProtoIDv2Stop,
122122
limiter.DefaultProtocolLimits.
123123
WithMemoryLimit(1, 4<<20, 64<<20).
124-
WithStreamLimit(1024, 1024, 1024),
124+
WithStreamLimit(1280, 1280, 1280),
125125
peerLimit(128, 128, 128))
126126

127127
}

0 commit comments

Comments
 (0)