Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsmCustomHTTPSProtocol.IsFallback

property IsFallback: Boolean read fIsFallback write fIsFallback default False;
THE protocol that answers a connection which negotiated nothing - a client that offered no ALPN, and every connection accepted on the server's PlainTextRedirectPort, which has no TLS to negotiate in.

EXACTLY ONE component bound to a given server may set this. Nothing enforces that at design time, so binding does: a second one raises rather than silently taking precedence by load order. The natural choice for HTTP is the HTTP/1.1 plugin - a plaintext redirect is a one-line HTTP/1.1 response, and h2 without prior knowledge has no way to be spoken in cleartext anyway. That is why the pairing in practice is AlpnPriority high on the HTTP/2 component and IsFallback on this one: h2 wins the negotiation, HTTP/1.1 answers when there was none.

It is only half the switch. The server's FallbackPolicy decides whether a fallback is consulted at all, and it defaults to fbpRefuse - so this property does nothing until FallbackPolicy is fbpUseFallback. The two are deliberately separate: which protocol, and whether to use one, are different questions, and a server that answered un-negotiated connections merely because some component was marked would be the accident the ALPN ordering work removed.