Bound idle time, header size and request reading on every listener, and connections on the client port

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 10:21:15 +02:00
1 parent d3fb217b31
commit f1b49d0251
9 files changed
+78 -38

No files matched your search

+3 -1
View File
@@ -142,7 +142,9 @@ func New(inv *inventory.Store, status StatusSink, requireIdentity bool, log *slo
// The handler is wrapped so the verified client identity reaches the stream:
// connect exposes the peer's address but not its certificate.
func (s *Service) Handler() (string, http.Handler) {
path, h := llmgwv1connect.NewAgentServiceHandler(s)
// A message is a heartbeat, a report or a log; nothing an agent says
// needs more, and a bound keeps one connection from taking the memory.
path, h := llmgwv1connect.NewAgentServiceHandler(s, connect.WithReadMaxBytes(16<<20))
return path, AuthMiddleware(h)
}