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:
Yong Tang
2026-07-19 03:52:42 -07:00
committed by GitHub
parent 077774e0cd
commit 201d86a098
3 changed files with 155 additions and 1 deletions

View File

@@ -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