diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-02 10:31:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-02 10:31:26 +0200 |
| commit | 3002bdcaa4ec22aa46b6c98eefda2f926dfff618 (patch) | |
| tree | 43cc06e2bd690b41b33a3b56735823affed541bb /internal/config | |
| parent | 29e50d7b6ebb9e6c59d079ef5b7551b1acd950fb (diff) | |
handlers: use turbo EOF acknowledgement instead of sleep heuristic
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/config/server.go b/internal/config/server.go index 6d25965..80b52e9 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -94,6 +94,8 @@ type ServerConfig struct { TurboFlushPollIntervalMs int `json:",omitempty"` // Turbo read retry interval in milliseconds when data is expected but not yet available. TurboReadRetryIntervalMs int `json:",omitempty"` + // Maximum time to wait for turbo EOF acknowledgement after signaling EOF, in milliseconds. + TurboEOFAckTimeoutMs int `json:",omitempty"` // Wait for turbo aggregate serialization during shutdown in milliseconds. ShutdownTurboSerializeWaitMs int `json:",omitempty"` // Final idle recheck wait before shutdown in milliseconds. @@ -128,6 +130,7 @@ func newDefaultServerConfig() *ServerConfig { TurboFlushTimeoutMs: 2000, TurboFlushPollIntervalMs: 10, TurboReadRetryIntervalMs: 1, + TurboEOFAckTimeoutMs: 2000, ShutdownTurboSerializeWaitMs: 500, ShutdownIdleRecheckWaitMs: 10, } |
