Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Snip.QUICServer

Snif class remoting as an iQuicAppProtocol plugin for TsmAsyncQUICServer.
  Server owns the UDP listener, TLS identity and transport policy. This plugin
  owns ClassServer and serves each connection on a separate blocking thread;
  reactor callbacks only copy input or wake that thread.

  A connection uses client-initiated bidirectional stream zero exclusively.
  Authentication uses the same RFC 9266 exporter and snip framing as TLS.
  The plugin does not opt in to replayable QUIC early data.

  IDLE POLICY: QUIC's negotiated idle timeout cannot be vetoed by a plugin.
  TsnipQUICClient sends PINGs at less than a third of that timeout, even while
  the application is blocked between calls. Other clients must do likewise.
  Do not disable the host's idle timeout to keep a remoting channel alive: it
  is also what releases connections whose peers disappeared. ConnectTimeout
  independently bounds peers that complete QUIC but never send snip connect.

  Stop runs on the application's thread, signals all sessions and waits at
  most DrainTimeout. Sessions and serving threads retain shared dispatch state,
  including ClassServer, so a slow application handler cannot access a freed
  component when a bounded drain expires. A retained protocol adapter is
  detachable and refuses new sessions after component destruction.

  Default ALPN shares the TLS token 'snip'.

Feature notes: Snif remoting framework (concepts)

Classes, interfaces and records

classTsnipQUICServer — component reference

inherits from TComponent

implements iQuicAppProtocolComponent

constructor Create(AOwner: TComponent); override; destructor Destroy; override; function AppProtocol: iQuicAppProtocol; procedure Start; virtual; procedure Stop; virtual; property ClassServer: TsnifClassServer read GetClassServer;
Owned for the component's lifetime; retained by any draining session. » member page
property ServerName: string read fServerName write fServerName; property SessionCount: Integer read GetSessionCount;
Serving sessions, including handlers still unwinding after a bounded Stop. » member page
property MaxFrameSize: Integer read fMaxFrameSize write SetMaxFrameSize default cSnipDefaultMaxFrameSize;
Maximum inbound frame BODY in octets (at least 1; default 16 MiB). TLS/QUIC also use it for the AddIn buffered-plaintext ceiling. A message is one frame: size this for the largest legitimate message, including padding. A peer can make this end buffer about one frame per connection. Changes apply only to connections created afterwards, never to live framers. » member page
property Server: TsmAsyncQUICServer read fServer write SetServer; property AlpnToken: string read fAlpnToken write SetAlpnToken;
Frozen once AppProtocol has been handed out. Empty selects the default. » member page
property AlpnPriority: Integer read fAlpnPriority write SetAlpnPriority default 0;
Higher priority precedes lower; equal priorities preserve insertion order. » member page
property PadRequestsTo: Integer read fPadRequestsTo write fPadRequestsTo default 0; property PadResponsesTo: Integer read fPadResponsesTo write fPadResponsesTo default 0; property RequirePadding: Boolean read fRequirePadding write fRequirePadding default False; property ConnectTimeout: Cardinal read fConnectTimeout write fConnectTimeout default 15000;
Milliseconds from authenticated Opened to the snip connect frame. » member page
property ReadTimeout: Cardinal read fReadTimeout write fReadTimeout default cSnipNoTimeout;
Zero allows the normal quiet period between remoted calls. » member page
property DrainTimeout: Cardinal read fDrainTimeout write fDrainTimeout default 10000;
Call Stop on the application thread, never from a reactor callback. » member page
property Active: Boolean read GetActive write SetActive default True;