NGINX HTTP/3 Stalls After a Network Change: Cause and Fix
by Danila Vershinin, , revisited on
dnf, yum or apt upgrades. It maintains the largest RPM repository of NGINX module packages and Varnish VMODs, with APT packages for Debian and Ubuntu.
nginx-mod requires a Pro subscription or higher.
A visitor opens your site on Wi-Fi, walks out of the door, and the phone moves to cellular. They tap a link. Over HTTP/2 the browser opens a new connection and the page appears. Over HTTP/3, the protocol that was designed to survive exactly this, the page stays blank for a minute or more. NGINX HTTP/3 stalls like this for every Chrome and Safari visitor whose network address changes while a connection is open.
Nothing appears in the error log at the default level. We found it on our own site: an iPhone with a VPN app that kept reconnecting showed blank pages for up to two minutes, while other sites loaded at once.
This article shows the code in NGINX that causes it, measurements against stock NGINX and public HTTP/3 servers, and the fix that ships in NGINX-MOD 1.30.8-86.
Symptoms: NGINX HTTP/3 Stalls and Then Recovers
The stall hits a connection that is already open when the visitor’s address changes. A new connection works, which is why a reload of the page a minute later looks fine and the problem is hard to pin down:
- A page hangs for tens of seconds, then loads. The browser waits on its existing connection, gives up, and opens a new one.
- It follows a network change. A phone moving from Wi-Fi to cellular, a VPN that connects or reconnects, or a home router that forgets an idle UDP mapping and assigns a new port (NAT rebinding).
- Only HTTP/3 is affected. The same visitor over HTTP/2 does not notice the change.
- Chrome and Safari are affected. So are OpenSSL and msquic clients. The reason is below.
- The error log is silent unless it runs at
infolevel, where each dropped packet leaves this line:
quic no available client ids for new path while handling decrypted packet
On our server we captured packets while the iPhone stalled. Packets of its open connections arrived from three new source ports for up to 12 seconds, and NGINX answered none of them. In the same second, a brand-new connection from the same phone got its first answer in 3 milliseconds. The server was healthy. It just refused to talk to a connection that had moved.
How HTTP/3 Is Meant to Handle an Address Change
A TCP connection is tied to its addresses and ports. Change any of them and the connection is dead. QUIC, the transport under HTTP/3, identifies a connection by connection IDs instead. When packets of a known connection arrive from a new address, the server checks that the client really is there (a PATH_CHALLENGE and its PATH_RESPONSE, RFC 9000, section 9) and carries on. The visitor notices nothing.
Each side chooses the ID that the other side must put into its packets. A server needs its ID to find the connection. A client often does not: one that uses a separate UDP socket for each connection can tell its connections apart without any ID. Such a client chooses a zero-length connection ID, which saves bytes in every packet the server sends. Chrome and Safari do this, and so do OpenSSL and msquic.
RFC 9000 is explicit about what that means for a new path: a zero-length ID is simply used on every path (section 5.1.1).
The Root Cause: A New Path Demands an ID That Cannot Exist
When a packet arrives from an address NGINX has not seen on this connection, ngx_quic_set_path() in src/event/quic/ngx_event_quic_migration.c sets up a new path. Here is the relevant part in NGINX 1.30.8:
/* new path requires new client id */
cid = ngx_quic_next_client_id(c);
if (cid == NULL) {
ngx_log_error(NGX_LOG_INFO, c->log, 0,
"quic no available client ids for new path");
/* stop processing of this datagram */
return NGX_DONE;
}
And ngx_quic_next_client_id() in ngx_event_quic_connid.c only hands out an ID that is not in use yet:
cid = ngx_queue_data(q, ngx_quic_client_id_t, queue);
if (!cid->used) {
return cid;
}
For a client with real connection IDs this is reasonable: QUIC wants a fresh ID on a new path so that an observer cannot link the two, and the client hands out spares for that purpose. A client with a zero-length ID has exactly one ID, it is in use, and it can never issue another. So ngx_quic_next_client_id() returns NULL, and NGINX drops the packet without sending anything back.
The same happens to the next packet, and the next. The browser retransmits into silence until one side gives up. That silence is why NGINX HTTP/3 stalls here instead of failing fast: the client never gets an error it could react to. The server closes its half after the idle timeout without the client ever learning of it.
The code has been there since NGINX 1.25.0, the first release with HTTP/3. It is in the current stable release 1.30.8 and in the current mainline release 1.31.10. The NGINX developers corrected it in their development tree on November 27, 2026. At the time of writing, no NGINX release contains that change.
Measuring It
Our test client speaks HTTP/3 with a zero-length connection ID, like a browser. It makes a request, replaces its UDP socket with a new one, and makes the next request on the same connection. The server sees the same connection arrive from a new source port, which is exactly what a NAT rebinding looks like. Each request gets a fixed time budget, so the result is a status code or a timeout and does not depend on the machine.
We ran the client against stock NGINX 1.30.8, built from the nginx.org source, and against NGINX-MOD 1.30.8-86, installed from our repository, on the same machine:
| Requests on one HTTP/3 connection | Stock NGINX 1.30.8 | NGINX-MOD 1.30.8-86 |
|---|---|---|
| Before any change | 200 OK | 200 OK |
| After one address change | no answer in 90 s | 200 OK |
| After three changes in a row | first one never answered | 200 OK, three times |
| After ten changes in a row | first one never answered | 200 OK, ten times |
| 12 repeated runs | 12 of 12 stalled | 12 of 12 passed |
On NGINX-MOD the whole exchange with one address change, handshake included, takes 0.2 seconds. On stock NGINX the request after the change got no answer in 90 seconds. The stock server’s log at info level shows what it did meanwhile: it logged the dropped packet 13 times, and after 60 seconds idle it closed its side with quic client timed out. The client was still retransmitting.
A client with real connection IDs behaves differently. With 8-byte IDs, the same test client gets its answer after one address change from stock NGINX too, because NGINX can use a spare ID for the new path. That is why a test with curl does not show the problem: curl’s HTTP/3 uses real connection IDs. Browsers do not.
The Same Client Against Public Servers
To make sure the test client itself is sound, we pointed it at public HTTP/3 servers, 10 runs each with a 30 second budget per request:
| Server | Request after the address change |
|---|---|
| Two of the largest public HTTP/3 deployments (not NGINX) | answered in all 10 runs |
| quic.nginx.org, the NGINX project’s own HTTP/3 host (nginx 1.31.8) | no answer in 30 s, in all 10 runs |
| www.getpagespeed.com on NGINX-MOD 1.30.8-84 | no answer in 30 s, in all 10 runs |
| www.getpagespeed.com on NGINX-MOD 1.30.8-86 | answered in all 10 runs, in 0.38 s |
Our own site was affected like any other NGINX server until we updated it.
The Fix in NGINX-MOD
NGINX-MOD 1.30.8-86 keeps an HTTP/3 connection alive when a client with a zero-length connection ID changes its address:
- The connection continues on the new address. NGINX validates the new path as RFC 9000 requires and answers there. The visitor’s request goes through instead of waiting for a timeout.
- Repeated changes work. A phone that hops between networks, or a VPN that reconnects again and again, keeps the same connection every time.
- The previous address stays out of the way. After a change NGINX also probes the old address. A late answer from it no longer points new responses back to the address the client has left.
- Stricter handling of malformed peers. A client that chose a zero-length ID and later tries to issue new IDs violates the protocol, and its connection is closed with PROTOCOL_VIOLATION as RFC 9000 requires.
The fix needs no configuration. NGINX-MOD ships it on the stable 1.30 base today, so you do not have to wait for a future NGINX release or move production to a mainline version to get it.
Every dynamic module built for NGINX-MOD keeps working with this release without a rebuild.
Get the Fix
The fix ships in NGINX-MOD 1.30.8-86 for RHEL, CentOS, AlmaLinux, Rocky Linux, Fedora and Amazon Linux. NGINX-MOD is our NGINX build with fixes and features that stock NGINX releases do not carry.
Requires a Pro subscription or higher.If you already run NGINX-MOD, update it. The package replaces the running binary gracefully, so no restart is needed:
sudo dnf -y update nginx-mod
If you run the standard nginx package, enable the NGINX-MOD repository and swap the packages. Your configuration stays as it is:
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf config-manager --enable getpagespeed-extras-nginx-mod
sudo dnf -y swap nginx nginx-mod
sudo systemctl enable --now nginx
On CentOS 7, use yum and yum-config-manager --enable in place of dnf and dnf config-manager --enable.
Then confirm the release. It must be 86 or later:
rpm -q nginx-mod
rpm -q --changelog nginx-mod | head -n 10
The newest changelog entry starts with “HTTP/3: a connection no longer stalls when the client’s address changes”.
Testing: Is Your Server Dropping Moved Connections?
NGINX tells you, but only at info level. Raise the level of the error log for a while:
error_log /var/log/nginx/error.log info;
Reload NGINX, let real traffic run, then count the drops:
grep -c "no available client ids for new path" /var/log/nginx/error.log
Every line is one packet from a visitor whose address changed, dropped without an answer. One stalled request produced 13 such lines in our test, so even a small count means visitors waiting on a dead connection. Set the log level back afterwards, because info is verbose on a busy server.
On NGINX-MOD 1.30.8-86 the same test, ten address changes included, logged no such line.
Performance Considerations
The change only matters when a client’s address changes. Requests on a connection that stays where it is are handled exactly as before, so there is no cost per request.
After an address change the server validates the new path before it trusts it, and limits what it sends there until the client has answered the challenge (RFC 9000, section 9.3). On www.getpagespeed.com, with about 0.19 seconds per round trip from our client, a request on the settled connection took 0.19 seconds, the first request after a change took 0.38 to 0.39 seconds, and the next one was back to 0.19 to 0.20. The cost is one extra round trip, once per change.
Our measurements use one client implementation and a change of source port, which is also what the iPhone in our capture did. A move to a different IP address takes the same code path in NGINX, but we did not measure it separately.
Security Best Practices
Accepting packets from a new address must not let an attacker redirect a response to a victim. That is what path validation is for, and NGINX-MOD keeps it in full: the new address has to return the server’s challenge before NGINX sends it more than a limited amount of data. The fix adds no directive and does not loosen any limit.
Keep quic_bpf on; at the top of nginx.conf on a server with several workers:
quic_bpf on;
Without it the kernel picks a worker by address and port, so a packet from a new address can reach a worker that does not know the connection. See our quic_bpf article.
Troubleshooting
NGINX HTTP/3 stalls continue after a network change. Check rpm -q nginx-mod: releases before 86 do not have the fix. Then check that quic_bpf is active on a server with more than one worker, as described above.
The log still shows no available client ids for new path. On NGINX-MOD 1.30.8-86 this no longer happens for Chrome and Safari. Firefox and curl use real connection IDs, and stock NGINX lets such a client keep only one spare. A second address change within about 7 seconds of the first finds no spare left, and the connection gets no answer. NGINX-MOD 1.30.8-87 allows three spares by default. On any other NGINX, set quic_active_connection_id_limit 4; in the http block.
HTTP/3 requests fail right after a reload, not after a network change. That is a different problem. See NGINX HTTP/3 reload drops connections.
HTTP/3 is slow rather than stalled. See HTTP/3 slow after one lost packet and NGINX HTTP/3 BBR.
Conclusion
Applying this fix once is the easy part. Keeping every host fixed as configs evolve and NGINX versions roll forward is where regressions creep back in. GetPageSpeed Amplify runs scheduled gixy scans across every host and ties findings to live NGINX runtime metrics. Drop-in compatible with the deprecated nginx-amplify-agent (EOL January 2026).
HTTP/3 was built so that a connection survives a change of network. In every NGINX release so far, it does not survive it for the clients that matter most: Chrome and Safari use a zero-length connection ID, and NGINX drops every packet they send from a new address. So NGINX HTTP/3 stalls exactly when a visitor is on the move, and the visitor waits on a dead connection until the browser gives up.
NGINX-MOD 1.30.8-86 keeps those connections alive, verified against stock NGINX and on our own production site. Subscribe to the GetPageSpeed repository to get it, along with every other fix we ship ahead of NGINX releases.