property

quic.QuicSession.maxPendingDatagrams

maxPendingDatagrams: number

The maximum number of datagrams that can be queued for sending. Datagrams are queued when sendDatagram() is called and sent opportunistically alongside stream data by the packet serialization loop. When the queue is full, the sessionOptions.datagramDropPolicy determines whether the oldest or newest datagram is dropped. Dropped datagrams are reported as lost via the ondatagramstatus callback.

This property can be changed dynamically to adjust queue capacity based on application activity or memory pressure. The valid range is 0 to 65535.