mirror of
https://github.com/coredns/coredns.git
synced 2026-07-23 08:00:11 -04:00
core: Add connection-level concurrency limiting to DNS-over-QUIC (#8213)
* core: Add connection-level concurrency limiting to DNS-over-QUIC This PR adds max connections to prevent unbounded connection goroutine growth for DoQ Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add test to cover change Signed-off-by: Yong Tang <yong.tang.github@outlook.com> --------- Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -74,6 +74,9 @@ type Config struct {
|
||||
// This is nil if not specified, allowing for a default to be used.
|
||||
MaxQUICStreams *int
|
||||
|
||||
// MaxQUICConnections is the maximum number of concurrent connections.
|
||||
MaxQUICConnections *int
|
||||
|
||||
// MaxQUICWorkerPoolSize defines the size of the worker pool for processing QUIC streams.
|
||||
// This is nil if not specified, allowing for a default to be used.
|
||||
MaxQUICWorkerPoolSize *int
|
||||
|
||||
Reference in New Issue
Block a user