feat: limit concurrent DoQ streams and goroutines (#7296)

This commit is contained in:
Ville Vesilehto
2025-05-19 03:49:21 +03:00
committed by GitHub
parent 7391755f7c
commit efaed02c6a
10 changed files with 678 additions and 9 deletions

View File

@@ -58,6 +58,14 @@ type Config struct {
// TLSConfig when listening for encrypted connections (gRPC, DNS-over-TLS).
TLSConfig *tls.Config
// MaxQUICStreams defines the maximum number of concurrent QUIC streams for a QUIC server.
// This is nil if not specified, allowing for a default to be used.
MaxQUICStreams *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
// Timeouts for TCP, TLS and HTTPS servers.
ReadTimeout time.Duration
WriteTimeout time.Duration