Hello fly.io team. I’ve been trying to get Navidrome+Symfonium working smoothly while hosted on fly.io, and it mostly works, but has some unexpected drops when streaming: the connection sometimes drops around 30 seconds but doesn’t actually error, causing Symfonium to get an empty stream and mistakenly believe it’s valid track.
I’ve been investigating with Claude Code + Opus 5.5’s help and we’ve narrowed it down a fair bit, and I believe we’ve mitigated the problem (we detect the failure and actually throw an exception instead of failing silently), but it’d be nice to not have to do that.
The rest below was generated by Claude, but I can try to help too.
We’re seeing Fly Proxy reset proxied streams that stop making progress for about 30 seconds, and the documented idle_timeout setting doesn’t change it. Staff answers here describe a 60s idle timeout (1, 2), so we’d like to know whether this is a separate timer, and whether it’s configurable.
Setup (region sjc)
- A public gateway app (
http_service, ports 80/443,auto_stop_machines = "suspend") reverse-proxies to backend apps over Flycast (http://<app>.flycast). The backend apps have private IPs only, with services on 80 (http) and 443 (tls, http). - The gateway is Jetty (Java). It stops reading from the backend when its client stops reading (normal TCP backpressure), so a slow client stalls both hops.
- We ruled out our own timeouts. Jetty logs
Idle timeout expiredwhen its own timer fires, and these breaks were a peer’sBroken pipeandConnection reset. The gateway’s HTTP client has no read timeout, and the backend’s Gohttp.Serversets onlyReadHeaderTimeout.
Reproduction
The client downloads a 52 MB file through the public hostname, reads 10 MB, stops reading for N seconds, then resumes.
| Stall | HTTP/1.1 client | HTTP/2 client |
|---|---|---|
| 20s, 25s, 28s | complete | complete |
| 32s | edge closes the gateway’s inbound connection ~35s into the request (Broken pipe on the gateway’s write) |
gateway’s outbound Flycast connection is reset (SocketException: Connection reset) |
| 60s | same, at 35.1s | same |
| 120s | — | edge closes the gateway’s inbound connection at 31.7s |
So something resets a connection that has made no progress for about 30 seconds, on the edge hop and the Flycast hop alike. Which one fires first varies between runs. After the edge-side cut, the HTTP/1.1 client was left hanging with no data and no FIN until its own 45s timeout.
We first saw this in production, with a real Android music player that pauses reading once its buffer is full. It produced the same Flycast-hop reset 5 times in a week.
What we tried
We set http_options.idle_timeout = 600 through the Machines API on every port of both machines (gateway and backend) and confirmed it in the machine config. Nothing changed. The 60s and 120s HTTP/2 stalls still reset the Flycast hop, and the 60s HTTP/1.1 stall was still cut at 35.2s.
Questions
- Is there a ~30s “no progress” timer in Fly Proxy, separate from
idle_timeout? - Can it be configured, per app or per service, including for Flycast traffic?
- Is it expected that an HTTP/1.1 client is left open with no FIN after the edge gives up on its upstream?