Skip to content

Commit

Permalink
BUG/MINOR: Use the correct type for tune.lua.maxmem
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwer authored and oktalz committed Jun 13, 2024
1 parent a2ee1b5 commit d1b7e6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion section-parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
addParser(parser, &sequence, &simple.String{Name: "tune.listener.default-shards"})
addParser(parser, &sequence, &simple.OnOff{Name: "tune.listener.multi-queue"})
addParser(parser, &sequence, &simple.Number{Name: "tune.lua.forced-yield"})
addParser(parser, &sequence, &simple.Enabled{Name: "tune.lua.maxmem"})
addParser(parser, &sequence, &simple.Number{Name: "tune.lua.maxmem"})
addParser(parser, &sequence, &simple.Time{Name: "tune.lua.session-timeout"})
addParser(parser, &sequence, &simple.Time{Name: "tune.lua.burst-timeout"})
addParser(parser, &sequence, &simple.Time{Name: "tune.lua.task-timeout"})
Expand Down
1 change: 1 addition & 0 deletions tests/configs/haproxy.cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ global
tune.h2.fe.glitches-threshold 24
tune.h2.fe.max-total-streams 1048576
tune.h2.zero-copy-fwd-send on
tune.lua.maxmem 65536
tune.pt.zero-copy-forwarding on
tune.ring.queues 8
tune.ssl.default-dh-param 2048
Expand Down

0 comments on commit d1b7e6d

Please sign in to comment.