Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsmCustomHTTPSProtocol.AlpnPriority

property AlpnPriority: Integer read fAlpnPriority write SetAlpnPriority default cAlpnPriorityDefault;
Where this protocol sits in the server's ALPN preference list. HIGHER IS PREFERRED, and the SERVER's order is what decides - the client's ordering is ignored beyond membership (RFC 7301 sec.3.2, and see TCustomTLS_ContentLayer.PickProtocol, which walks our list outermost).

IT EXISTS FOR THE OBJECT INSPECTOR. Registering from code already states the order, because two adjacent Protocols.AddProtocol calls read top to bottom. A COMPONENT binds itself from Loaded, so the order is DFM DECLARATION ORDER - invisible, changed by accident, and wrong in a way nothing reports, since both outcomes are perfectly valid negotiations. Set this and the load order stops mattering: insertion is sorted, so each component lands in its right slot whenever it happens to load.

LEAVE EVERY COMPONENT AT 0 AND NOTHING CHANGES - equal priorities keep insertion order, which is what the plain append always did. Typical use is h2 = 10 against http/1.1 = 0.

IT ORDERS THE REGISTRY SEGMENT ONLY. Engine-seeded tokens - 'acme-tls/1' from AddTLSAcmeALPN - are merged AHEAD of all of these by TsmAsyncTLSServer.ConfigureContentLayer and cannot be demoted here. That is correct: a challenge that cannot be negotiated is a challenge that fails.

Takes effect when the protocol binds. Changing it later re-seats the entry. NOT SETTABLE WHILE THE SERVER IS ACTIVE: the registry is locked, so a re-order under live traffic would be safe rather than corrupting - but it would still hand different connections different answers for no stated reason, so an assignment there raises ETLSAsyncServer rather than being stored and quietly ignored. Deactivate, set it, reactivate.