Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Quic.Recovery

Feature notes: Asynchronous QUIC server and HTTP/3 component

Classes, interfaces and records

recordtQuicRecoveryTimer

Kind: tQuicRecoveryTimerKind; Space: tQuicPacketSpace; Deadline: UInt64;

recordtQuicRecoveryPacket

Space: tQuicPacketSpace; Packet: tQuicSentPacket;

recordtQuicProbeRequest

Active, PadInitialTo1200: Boolean; Space: tQuicPacketSpace; PacketCount: Integer;

classtQuicRecovery

One serialized controller describes one path. Times are monotone caller microseconds; zero is a valid timestamp. The host validates ACK ranges against its sent-number history before AckReceived. The bounded scalar ledger holds no payloads and does not replace that history. PacketSent records actual transmission; the host checks Congestion.CanSend before ordinary transmission and counts PTO probes in flight as usual. Lost events identify new losses once, with Frames explicitly empty. The host recovers still-needed frame data in new packets, never old packet numbers. A late ACK remains a delivery signal without removing flight bytes or increasing the window a second time. PTO requests probes without declaring loss or reducing the window. Scheduler, amplification byte limits, pacing/burst limits, ECN validation and retransmission selection remain host responsibilities. SetState supplies writable key availability; amplification blocking suppresses PTO, but not a pending loss timer.

constructor Create(aRole: tQuicRole; aMaxDatagramSize: UInt64 = 1200; aMaxTrackedPackets: Integer = 12288; aMaxAckDelayMicros: UInt64 = 25000); destructor Destroy; override; procedure PacketSent(aSpace: tQuicPacketSpace; const aPacket: tQuicSentPacket; aInFlight, aAppOrFlowLimited: Boolean; aMtuProbe: Boolean = False; aPathProbe: Boolean = False; aPtoProbe: Boolean = False); procedure EnableUtilizationEpochs;
Opt in before the first transmission. One shared utilization epoch spans writable packet spaces. Only actual ordinary sends add demand. Report real congestion blockage separately from global ready-output exhaustion; pacing, socket and caller burst holds report neither.
procedure NoteCongestionLimited; procedure NoteApplicationLimited; procedure AckReceived(aSpace: tQuicPacketSpace; const aAck: tQuicFrame; aAckDelayMicros, aNowMicros: UInt64; out aLost: tQuicRecoveryPackets); procedure SetState(aHandshakeConfirmed, aPeerAddressValidated, aInitialKeys, aHandshakeKeys, aApplicationKeys, aAmplificationBlocked: Boolean; aNowMicros: UInt64); procedure SetMaxAckDelay(aMaxAckDelayMicros: UInt64); procedure SetMaxDatagramSize(aMaxDatagramSize: UInt64); function NextTimeout(out aTimer: tQuicRecoveryTimer): Boolean; procedure Timeout(aNowMicros: UInt64; out aLost: tQuicRecoveryPackets; out aProbe: tQuicProbeRequest); procedure DiscardSpace(aSpace: tQuicPacketSpace; aNowMicros: UInt64);
Permanent packet-space discard removes flight bytes without a loss signal, resets PTO backoff and prevents that space from being reused.
procedure RejectEarlyData(aNowMicros: UInt64);
Retire rejected early flight without a congestion-loss event. Ordinary application and handshake entries, packet-number history, RTT, keys and PTO backoff survive. The shared application space remains writable.
procedure ResetForPath(aNowMicros, aMaxDatagramSize: UInt64; aResetCongestion: Boolean; out aLost: tQuicRecoveryPackets);
Migration detaches old flight without a congestion event. Delivery obligations remain in the host sent registry; old-path ACKs cannot sample the new RTT, grow its window or remove its flight twice.
procedure Clear(aNowMicros: UInt64);
Terminal cleanup. A cleared controller cannot be restarted.
procedure DiscardPathProbes(aNowMicros: UInt64; out aLost: tQuicRecoveryPackets); property LastAckHadPathProgress: Boolean read fLastAckHadPathProgress; property Rtt: tQuicRttEstimator read fRtt; property Congestion: tQuicNewReno read fCongestion; property PeerAddressValidated: Boolean read PeerValidated; property PtoCount: Cardinal read fPtoCount; property LastAckHadProgress: Boolean read fLastAckHadProgress;
Newly acknowledged tracked ledger entries in the last AckReceived call, independently of payload retention. Space discard clears the report.
property AckScanWork: Int64 read fAckScanWork;
Diagnostics: cumulative ledger entries examined across AckReceived scans. It rises by the ledger size on an ACK that is scanned and not at all on a repeat of the previous ACK, which is dropped before the scan.
property TrackedPacketCount: Integer read GetTrackedPacketCount; property MaxAckDelayMicros: UInt64 read fMaxAckDelay; property UtilizationEpochsEnabled: Boolean read fUtilizationEnabled; property UtilizationEpochActive: Boolean read GetUtilizationEpochActive;

Types (enumerations, sets, aliases)

enumtQuicRecoveryTimerKind

  tQuicRecoveryTimerKind = (qrtNone, qrtLoss, qrtPto);

arraytQuicRecoveryPackets

  tQuicRecoveryPackets = array of tQuicRecoveryPacket;

Routines