Skip to content

Commit

Permalink
increased rate limiter to 1024 packets
Browse files Browse the repository at this point in the history
  • Loading branch information
Aratz M. Lasa committed Nov 22, 2022
1 parent a5459d2 commit 179a8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/runtime/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c Config) newServerDisc(env Env, lx fx.Lifecycle, vat casm.Vat) (d discove

d, err = bootutil.ListenString(vat.Host, env.String("discover"),
socket.WithLogger(env.Log()),
socket.WithRateLimiter(socket.NewPacketLimiter(160, 8)))
socket.WithRateLimiter(socket.NewPacketLimiter(1024, 8)))
if c, ok := d.(io.Closer); ok {
lx.Append(closer(c))
}
Expand All @@ -55,7 +55,7 @@ func (c Config) newClientDisc(env Env, lx fx.Lifecycle, vat casm.Vat) (d discove

d, err = bootutil.DialString(vat.Host, env.String("discover"),
socket.WithLogger(env.Log()),
socket.WithRateLimiter(socket.NewPacketLimiter(160, 8)))
socket.WithRateLimiter(socket.NewPacketLimiter(1024, 8)))
if c, ok := d.(io.Closer); ok {
lx.Append(closer(c))
}
Expand Down

0 comments on commit 179a8a4

Please sign in to comment.