RTMP Go Away: Lossless reconnections for live streaming
RTMP Go Away extends the RTMP protocol so a live-streaming server can signal a client to drop its TCP connection ahead of known interruptions like host maintenance. Clients announce support via a new field in the connect packet, and the server sends a new go-away message type only to those clients. An FFmpeg reference implementation reconnects at the next keyframe, avoiding the up to 20 seconds of lost live content that ungraceful disconnects can cause.
Related posts
- How we built a realtime system for responsive voice AI in six months
OpenAI mediumAdept
GPT-Live replaces turn-detector-based voice AI with a full-duplex voice model that listens and speaks simultaneously, delegating deeper reasoning and tool use to frontier models like GPT-5.5 over an asynchronous RPC path that never blocks media. The system separates a Go-based media fast path (replacing Python asyncio, with new p95 matching old p50) from application logic. It uses warm model-instance handoffs to perform context compaction without KV-cache rebuild pauses, prefills frontier-model sessions at call start, and derives discrete turns from overlapping speech via speculative and authoritative transcript views. Startup is cut to a single UDP packet through WARP, a set of backward-compatible WebRTC changes that reduces handshakes from six round trips to one, plus Instant Connect for pre-negotiated SDP. Shadow testing on production traffic showed that capacity depends on concurrent sessions and CPU-side stream handling, not just GPU throughput.
- How OpenAI delivers low-latency voice AI at scale
OpenAI hardMaster
OpenAI rearchitected its WebRTC stack for ChatGPT voice and the Realtime API by splitting a stateless UDP relay from a stateful Go/Pion transceiver that owns ICE, DTLS and SRTP state. The design avoids one-public-port-per-session media termination, which fits poorly with Kubernetes and cloud load balancers. Server-generated ICE ufrags encode routing hints, so the relay can steer the first STUN packet to the owning transceiver without an external lookup. Relay flows are kept in memory with Redis as a backup, and Cloudflare geo-steered signaling plus a globally distributed relay fleet shorten the first hop and cut setup latency.
- Shipping Media Over QUIC at Meta Scale for Instagram Live Ingest
Meta Engineering mediumAdeptInstagram Live on iOS and Android now ingests live video over Media over QUIC (MoQ), an emerging IETF standard, replacing Meta's in-house QUIC-based RUSH protocol and reaching parity on streaming-quality and reliability metrics. The rollout used the open-source moxygen library on clients behind a single config switch. Edge endpoints translate MoQ frames back to RUSH so the backend didn't have to change, and server-side stream URL routing allowed experiment-based ramps that could be resized in minutes. Operational hurdles included a moving draft spec, UDP/443 blocking (handled by racing TCP and QUIC handshakes at session start), and encrypted framing, which required MoQ-aware edge tracing. Next steps are QMUX TCP fallback, subgroups for separate audio, video and metadata streams, MoQ playback with partial reliability, and real-time AI use cases.
- More Reliable Connections to Your Repls
Replit mediumAdeptReplit split reverse WebSocket proxying out of Conman, its container manager on GCE VMs, into a dedicated service called Eval that sits between clients and Conman VMs. Previously, frequent Conman rollouts could disconnect a client twice (once when the proxying VM died and again when the target VM died), complicated autoscaling, and blurred the cause of session failures. With Eval, Conman updates cause at most one disconnect, Eval drains connections with a 30h+ shutdown grace period, scales independently on active connections, and its observability pinpoints whether failures come from token validation, Controlplane lookups or the remote Conman connection.
- Better HTTP/1 connection reuse
The Go Blog mediumAdept
Go 1.27's net/http.Transport now asynchronously drains unread HTTP/1 response bodies, up to 50 ms or 256 KB, before closing them. Connections can then be reused instead of abandoned, which made a 100-request status-check loop about 5x faster (710 ms to 150 ms). Before this change, any unread bytes, even a trailing newline left by encoding/json.Decoder, forced a new TCP+TLS handshake costing several RTTs. The recommendation is to drop hand-rolled drain helpers, which are also unnecessary for HTTP/2, and simply close response bodies.