UDP replies from fly-global-services lost on most flows (inbound fine), which breaks QUIC

We run a QUIC server (quinn 0.11) on a dedicated IPv4, bound to fly-global-services:443, in iad. For about a week, QUIC connections from Europe either fail to handshake or stop receiving data after 1–5 minutes. TCP to the same machine is fine.

To isolate it we deployed a minimal test app: iad, shared-cpu-1x, dedicated IPv4, UDP services bound to fly-global-services. It answers a request datagram with N reply datagrams of size S, sent individually or as one GSO batch. Results from one client in Poland (Liberty Global/UPC, NAT’d IPv4), 2026-10-27 22:59–23:08 UTC:

  • Every request datagram reached the app, and every reply send returned OK.
  • 22:59: all 264 replies arrived (200–1252 bytes, single and GSO alike).
  • 23:02–23:03: no replies arrived for any size or mode, from new source ports.
  • 23:04: of 20 sockets opened at once, replies arrived on 2 only, and one of those stopped receiving about 1s later.
  • A flow that worked kept working for 3+ minutes, with 4s and 20s gaps.
  • Size and GSO make no difference: 600-byte replies were lost just like 1200-byte ones.
  • From the same client, HTTP/3 to cloudflare-quic.com and google.com works, and 1280-byte ICMP to the app’s IP works.
  • QUIC handshakes: the client’s Initials are ACKed (the small ACK datagrams arrive), but the server’s handshake flight usually never does.

Our production app shows the same pattern for clients in Poland, Germany and Canada. Is there a known problem with the UDP return path for dedicated IPv4s, for example an edge host that drops replies for the flows hashed to it? We can share app and machine IDs and exact timestamps privately.

Hi, we’re going to need the app name or machine IDs to investigate this further. Machine IDs are generally ok to share publicly.

Thanks. Here are the IDs:

Test app intentic-quic-probe, machine 2860103bd6d028 (iad), dedicated IPv4 188.93.151.214. UDP 5000 was the datagram echo, and UDP 4431–4433 were QUIC listeners. Every result in the first post comes from this machine, 2026-10-27 22:59–23:08 UTC. Server-side examples from that window: QUIC handshakes on 4432/4433 timing out at 23:00:41, 23:01:13 and 23:01:26, and established connections on 4431/4432 closing with an idle timeout at 23:00:04, 23:00:12 and 23:00:44. I destroyed this app and released its IP after the tests. If a live reproduction would help, I can deploy it again.

Production app intentic-ingress, machine 8d4105fee01e68 (iad), dedicated IPv4 137.66.9.96, QUIC on UDP 443. This app had the same pattern for about a week, until 2026-10-27 around 23:30 UTC. At that point we removed its UDP service and turned QUIC off. It now serves TCP only, so it no longer reproduces the problem. We also added a second machine, 8577ee0b425418, in fra.

The client is a NAT’d IPv4 on Liberty Global/UPC in Poland. If you need the address to find the flows, I can share it privately.

Hi! It seems like your app has multiple machines. Our UDP docs should definitely be improved a bit, but the nutshell is that unlike TCP, our UDP implementation currently has no real load balancing and relies on an eventually-consistent choice of forwarding targets. At any given time, there is only one machine chosen to accept all messages from a given region, and when this flips between nodes, there is no conntrack flow entries to keep existing flows from breaking. This is likely what was happening to your machines.

This has been a long-time issue on our platform and we definitely need to rework how non-TCP services are supported. I’m looking into whether there are any easy wins in your case, but I can’t speak of any guarantees or ETAs at this point. If your app can run without QUIC, I would recommend not using QUIC for now until we introduce proper UDP and QUIC support in our load balancer (you’ll definitely hear about this here on the community!). Alternatively, the only case that we can guarantee working for UDP at this point (and in the past as well) is for single-machine apps, which I know is very much counter to how our PaaS experience is set up.

Thanks, that explanation helps, and we’ll keep QUIC off. We’ve since moved to machines in more than one region, so by your description UDP wouldn’t be reliable for us now anyway.

One detail in case it matters for your investigation: both apps had a single machine while the failures happened. The test app only ever had 2860103bd6d028. The production app had only 8d4105fee01e68 until 2026-10-27 23:33 UTC, when we added the fra machine. That was after these tests and after QUIC was turned off.

The loss was also per flow rather than all at once. With 20 sockets opened at the same moment against the single test machine, replies came back on 2 of them and not on the other 18. Inbound datagrams reached the app on every flow; only the replies went missing. So there may be something on the reply path beyond target flipping. If it would be useful, I’m happy to redeploy the single-machine test app so you can reproduce it.

Breakage with a single machine isn’t something I’d expect. If possible could you have your test app redeployed for reproduction? I have been trying to reproduce this myself and so far not having much luck.

Done. It’s redeployed and it reproduced on a single machine within a few minutes.

Target

  • App intentic-quic-probe, org intentic, region iad. It has exactly one machine, 48edd72df7dd08 (shared-cpu-1x, 256 MB). Dedicated IPv4: 137.66.51.242.
  • UDP services on 5000, 4431, 4432 and 4433. The app binds fly-global-services on each port.
  • No auto-stop, and nothing else in the app. I’ll leave it running until you tell me you’re done with it.

What we saw today, 2026-10-28, client in Poland (Liberty Global/UPC, NAT’d IPv4)

Each round opens 20 fresh UDP sockets at once. Each socket sends 2 requests and expects 2 replies to each.

UTC sockets that got replies QUIC test
15:14 20/20 –
15:15:30 20/20 handshakes OK on all three ports
15:16:41 12/20 4433 handshake timed out
15:18:06 0/20 handshake timed out
15:19:28 0/20 handshake timed out
15:20:50 0/20 handshake timed out
15:22:12 0/20 handshake timed out

In the 0/20 rounds, the machine logged every request arriving, and every reply send_to returned Ok(()). Example lines from fly logs -a intentic-quic-probe:

2026-10-28T15:22:23Z app[48edd72df7dd08] iad [info]udp: <client>:25965 asked 600x2 single f19a: Ok(())
2026-10-28T15:22:23Z app[48edd72df7dd08] iad [info]udp: <client>:25965 asked 600x2 single f19b: Ok(())

So the inbound path works and the outbound replies disappear after the machine sends them. The machine count never changed: fly machine list showed one machine the whole time.

Protocol (UDP 5000)

Send one datagram whose text is <size> <count> <single|gso> <tag>, for example 600 2 single abc. The server replies with <count> datagrams of <size> bytes, each starting with <tag> . With single it sends them one by one; with gso it sends them as one UDP_SEGMENT batch. Every request is logged as udp: <src> asked <size>x<count> <mode> <tag>: <send result>.

The QUIC ports run quinn 0.11 with a self-signed cert and ALPN probe/h3. 4431 uses quinn defaults, 4432 turns GSO off, and 4433 turns GSO and PMTUD off. A bidi stream carrying a decimal number is answered with that many bytes. The plain UDP test on 5000 is enough to reproduce, though.

Client to reproduce (Python 3, stdlib only)

import socket, sys, time
HOST = sys.argv[1] if len(sys.argv) > 1 else "137.66.51.242"
def ask(s, tag, size=600, n=2):
    s.sendto(f"{size} {n} single {tag}".encode(), (HOST, 5000))
    got, end = 0, time.monotonic() + 1.0
    while time.monotonic() < end:
        try:
            if s.recvfrom(4096)[0].startswith(tag.encode() + b" "): got += 1
        except socket.timeout: break
    return got
while True:
    socks = [socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for _ in range(20)]
    for s in socks: s.settimeout(0.3); s.bind(("0.0.0.0", 0))
    ok = sum(1 for i, s in enumerate(socks) if ask(s, f"t{int(time.time())}f{i}a") == 2 and ask(s, f"t{int(time.time())}f{i}b") == 2)
    print(time.strftime("%H:%M:%S", time.gmtime()), f"{ok}/20 flows got all replies", flush=True)
    for s in socks: s.close()
    time.sleep(30)

How to check a run

  1. Run the client for 10–15 minutes. It prints one line every ~40 seconds. A healthy path prints 20/20 every time; the problem shows up as rounds dropping to 0/20.
  2. When a round prints less than 20/20, match its tags (t<unix-ts>f<n>a/b) in fly logs -a intentic-quic-probe. If the line ends in Ok(()), the request arrived and the reply was sent, so the drop happened between the machine and the client.
  3. Since the source ports are logged, you can follow one failing flow through your edge or proxy and see where the reply datagrams stop.

The failures come and go. Last night everything worked at 22:59 UTC and almost nothing worked at 23:02–23:04. Today everything worked at 15:14–15:15 and nothing worked from 15:18 onwards. If a run from your side shows only 20/20, it may help to run from a European network (we see it from Poland; our production users saw it from Poland, Germany and Canada), or to keep it running longer. I’m happy to run the client from our side at any time you name, so you can watch your side while it fails. If you need our client’s public address to filter flows, I can send it privately.

Done. The test app is redeployed and running: intentic-quic-probe, one machine only, 48edd72df7dd08 in iad. It reproduced within a few minutes. At 15:14–15:15 UTC all 20 fresh flows got replies, at 15:16 only 12 of 20 did, and from 15:18 to 15:22 none did. During the failing rounds the machine logged every request arriving and every reply send returning Ok.

I wrote a longer reply with the exact datagram protocol, a short Python client and step-by-step checks, but Akismet hid it pending moderator review. Could someone approve it? I’ll leave the app running until you’re done with it.

I haven’t had much luck running your repro script either.

Can you try doing curl -I https://debug.fly.dev -H 'flyio-debug: doit' so we know which edges are close to you and also a traceroute / mtr from your local machine to the IP.

Here they are, all taken from the same client at about 17:42–17:47 UTC. I’ve replaced our client’s public address with <client>.

debug.fly.dev

fly-region: fra
server: Fly/366e4bf88 (2026-10-27)
fly-request-id: 01M61SPPR0WW6ZYAZAM951Q2V3-fra
flyio-debug: {"n":"edge-dp-fra1-7064","nr":"fra","ra":"<client>","rf":"Verbatim","sr":"fra","sdc":"fra1","sid":"e82227ef197d78","st":0,"nrtt":0,"bn":"worker-dp-fra1-acf8","mhn":null,"mrtt":null}

traceroute to 137.66.51.242 (Windows tracert -d; hop 1 is the home router)

  1     1 ms     1 ms     1 ms  192.168.0.1
  2    11 ms    16 ms    11 ms  84.116.254.65
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5    20 ms    13 ms    13 ms  185.182.244.33
  6    18 ms    18 ms    21 ms  62.115.46.188
  7    19 ms    20 ms    17 ms  62.115.141.217
  8    36 ms    37 ms    32 ms  62.115.120.20
  9    29 ms    32 ms    32 ms  62.115.136.219
 10    33 ms    38 ms    31 ms  62.115.236.34
 11     *        *        *     Request timed out.
 12    39 ms    36 ms    36 ms  137.66.51.242

We don’t have mtr on this machine. Instead, 100 pings each to the last Telia hop (62.115.236.34) and to 137.66.51.242 got 100/100 replies, averaging 38 ms and 37 ms. From the RTT, the anycast IP terminates in Europe (fra, going by the debug header), so our datagrams enter Fly in fra and are carried to the machine in iad. The replies have to make that trip back.

Repro right now: the path is in a good period at the moment. 8 rounds between 17:43 and 17:52 UTC got 20/20, apart from one 19/20 at 17:47:40. That matches what we’ve seen so far: it works for a while, then fails for a few minutes. Today’s bad window was 15:16–15:22 UTC and last night’s was 23:02–23:04 UTC.

I’ve left the repro client running from this machine for the next 90 minutes. It runs one round of 20 fresh flows about every 37 seconds. When rounds drop again, I’ll post the exact UTC timestamps here so you can line them up with the logs for 48edd72df7dd08 and with your fra edge.

Update on the 90-minute run: it didn’t hit a bad window this time.

From 17:48 to 19:18 UTC the client ran 146 rounds of 20 fresh flows against 48edd72df7dd08. 134 rounds got replies on 20/20 flows, 11 on 19/20 and one on 18/20. There were no rounds like the 0/20 ones at 15:18–15:22 UTC. In case it’s useful for matching against logs, the rounds where a flow lost its replies were at 17:58:04, 17:59:18, 18:00:33, 18:08:00 (2 flows), 18:11:05, 18:23:28, 18:25:19, 18:27:10, 18:48:50, 18:56:15, 19:04:20 and 19:11:09 UTC.

So far the bad windows we’ve caught are 2026-10-27 23:02–23:04 UTC and 2026-10-28 15:16–15:22 UTC. The app is still deployed, and I can run the client again at any time you suggest, for example while you capture on the fra edge.

@radarsu can we run tests again today so can try to catch another bad window? Our tests haven’t turned up anything so far. even when connecting to fra.

The app is still deployed, and I can run the client again at any time you suggest, for example while you capture on the fra edge.

can we throw up the single machine app again. Might be easier to monitor on the machine’s host, since you can get routed through a different edge. Let me know the machine id when you do.