配置


🌐 Configuration

QUIC API 旨在设计得灵活且高度可配置,以支持各种使用场景。用户可以通过传递给 quic.connect()quic.listen() 函数的选项,以及在 QuicEndpointQuicSession 实例上动态配置,来配置 QUIC 传输、TLS 握手和应用行为的各个方面。该 API 还提供对详细统计信息和事件的访问,以用于监控和调试。

🌐 The QUIC API is designed to be flexible and highly configurable to support a wide range of use cases. Users can configure various aspects of the QUIC transport, TLS handshake, and application behavior via options passed to the quic.connect() and quic.listen() functions, as well as dynamically on QuicEndpoint and QuicSession instances. The API also provides access to detailed statistics and events for monitoring and debugging.

QUIC 传输参数在 TLS 握手期间交换,以协商各种传输级设置,如最大流数量、空闲超时和数据报支持。quic 模块允许用户配置其端点向对端广告的传输参数,以及访问对端广告的传输参数。这些参数与对端协调配置 QUIC 连接的能力和限制。

🌐 QUIC transport parameters are exchanged during the TLS handshake to negotiate various transport-level settings such as maximum stream counts, idle timeouts, and datagram support. The quic module allows users to configure the transport parameters their endpoint advertises to peers, as well as access the transport parameters advertised by peers. These configure the capabilities and limits of the QUIC connection in coordination with the peer.

本地端点和会话的行为也提供了一套丰富的本地设置可供配置。这些设置包括连接限制、拥塞控制、流优先级等。

🌐 A rich set of local settings is also available for configuring the behavior of the local endpoint and sessions. These include settings for connection limits, congestion control, stream prioritization, and more.