Skip to content

Commit

Permalink
adjust circuit protocol limits to give some room for the client
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jan 16, 2022
1 parent 66d896c commit 696eeb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ func SetDefaultServiceLimits(limiter *rcmgr.BasicLimiter) {
setProtocolLimits(limiter, circuit.ProtoIDv1,
limiter.DefaultProtocolLimits.
WithMemoryLimit(1, 4<<20, 64<<20).
WithStreamLimit(1024, 1024, 1024),
WithStreamLimit(1280, 1280, 1280),
peerLimit(128, 128, 128))
setProtocolLimits(limiter, circuit.ProtoIDv2Hop,
limiter.DefaultProtocolLimits.
WithMemoryLimit(1, 4<<20, 64<<20).
WithStreamLimit(1024, 1024, 1024),
WithStreamLimit(1280, 1280, 1280),
peerLimit(128, 128, 128))
setProtocolLimits(limiter, circuit.ProtoIDv2Stop,
limiter.DefaultProtocolLimits.
WithMemoryLimit(1, 4<<20, 64<<20).
WithStreamLimit(1024, 1024, 1024),
WithStreamLimit(1280, 1280, 1280),
peerLimit(128, 128, 128))

}
Expand Down

0 comments on commit 696eeb5

Please sign in to comment.