PagentKeepAliveTimeoutBuffer
Bun

property

http.AgentOptions.agentKeepAliveTimeoutBuffer

agentKeepAliveTimeoutBuffer?: number

Milliseconds to subtract from the server-provided keep-alive: timeout=... hint when determining socket expiration time. This buffer helps ensure the agent closes the socket slightly before the server does, reducing the chance of sending a request on a socket that’s about to be closed by the server.