Documentation
¶
Overview ¶
Example: QUIC Idle Timeout Configuration
This example demonstrates configuring QUIC idle timeout for HTTP/3 connections to prevent connection drops on long-lived idle connections.
By default, QUIC connections have a 30-second idle timeout. If your application keeps connections open for longer periods without activity (e.g., connection pooling, long polling), you may need to increase this value.
The keepalive is automatically set to half of the idle timeout to prevent connection closure.
Run: go run main.go
Click to show internal directories.
Click to hide internal directories.