CrushMFT Documentation

HTTP/3#

HTTP/3 is the newest form of HTTP. It runs over QUIC, on UDP instead of TCP, and is always encrypted with TLS 1.3. On lines with delay or loss, such as mobile networks and long distances, pages load and transfers recover faster than over HTTP/1.1.

An HTTPS listener of CrushMFT can answer HTTP/3 beside its usual answer. Browsers that know HTTP/3 switch to it by themselves; everything else goes on as before.

How it works#

An HTTPS listener with HTTP/3 allowed opens a second door: the same port number, on UDP. What arrives there over HTTP/3 is handed, inside the server, to the listener's ordinary HTTPS side, with the real address of the client. Every request is so served by the same code, with the same logins, rights, logs and limits. There is nothing else to set up, and nothing behaves differently for a user.

A browser learns about it from the listener: on its normal answers over TCP, the server adds a header that says "HTTP/3 is offered on this port". The browser tries it on the next request and falls back without a word if UDP does not get through.

Turning it on#

HTTP/3 is a setting of the listener, http3_allowed.

Note

The port form of Preferences has no switch for it yet. Set it in the server's prefs.XML, in the entry of the HTTPS listener: <http3_allowed>true</http3_allowed>. The server reads the file by itself and starts the UDP side within seconds.

Then open the listener's port for UDP in the firewall, beside TCP, and forward it to the server.

What it needs#

Need Why
Java 21 or newer the QUIC code needs it. On an older Java, HTTP/3 stays off and the log says so once.
the UDP port free and open the same number as the listener's TCP port
an ordinary HTTPS listener not one that requires client certificates: "those cannot be relayed". Not one that expects a PROXY protocol header. In both cases HTTP/3 is not started for that port, and the log says why.
a certificate browsers trust browsers use HTTP/3 only with a certificate they accept without a warning. A self-signed test certificate works over TCP after a click, and never over HTTP/3.

In FIPS mode, HTTP/3 is not started: its TLS 1.3 is the server's own code and not the validated module.

A server in DMZ mode does not offer it.

Checking#

  • The listener is checked for HTTP/3 in the port list of Preferences: a note appears when something keeps it from starting.
  • In a browser's developer tools, the Network tab has a column "Protocol". After the first request it shows h3 for requests to the server.
  • The log kind HTTP3 in Logging writes what the UDP side does.

Behind a load balancer#

HTTP/3 must reach the server as UDP. A load balancer that only passes TCP on, or that ends TLS itself, keeps HTTP/3 between the browser and itself, if it offers it at all. Then leave it off on the server: it would never be used.

Should you?#

Turn it on when users are far away or on mobile lines and use the web interface for transfers. On a local network it changes nothing that anybody would notice. It costs one more open port and nothing else.