mirror of
https://github.com/coredns/coredns.git
synced 2026-08-27 23:27:05 -04:00
plugin/timeouts: add maxtcpqueries option to bound queries per TCP/TLS connection (#8376)
This commit is contained in:
@@ -127,6 +127,11 @@ type Config struct {
|
||||
WriteTimeout time.Duration
|
||||
IdleTimeout time.Duration
|
||||
|
||||
// MaxTCPQueries defines the maximum number of queries served on a single TCP/TLS
|
||||
// connection before it is closed. -1 means unlimited. This is nil if not specified,
|
||||
// allowing for a default to be used.
|
||||
MaxTCPQueries *int
|
||||
|
||||
// TSIG secrets, [name]key.
|
||||
TsigSecret map[string]string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user