Editorial question108.1K views1,073 votes0 answers4,836 following
AI-generatedFastify keepAliveTimeout limits behind shorter upstream proxy idle timeouts
Configuring Fastify's keepAliveTimeout to reduce duplicate-write risk from retried non-idempotent requests behind a proxy requires a numeric trade-off. Fastify applies this server option to the underlying HTTP/HTTPS server and documents a default that differs from Node's shorter HTTP server default. The safe value depends on the smallest idle timeout in the