---
title: "RTMP Go Away: Lossless reconnections for live streaming"
description: "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."
url: "https://swe.quest/articles/rtmp-go-away-lossless-reconnections-for-live-streaming-51a58d44372befbd"
canonical: "https://engineering.fb.com/2021/10/19/open-source/rtmp-go-away/"
source: "Meta Engineering"
published: "2021-10-19"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 1
tags: ["video-media","networking","open-source","resilience"]
---

# RTMP Go Away: Lossless reconnections for live streaming

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2021-10-19, 1 min read, Announcement. Original: [https://engineering.fb.com/2021/10/19/open-source/rtmp-go-away/](https://engineering.fb.com/2021/10/19/open-source/rtmp-go-away/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)

## Prerequisites

- RTMP basics
- video keyframes ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))

## Keywords

RTMP, RTMP Go Away, FFmpeg, TCP

## Related posts

- [How we built a realtime system for responsive voice AI in six months](https://swe.quest/articles/how-we-built-a-realtime-system-for-responsive-voice-ai-in-six-months-00acf536a10a0c45.md): OpenAI · 2026-08-03 · Medium · 12 min read · Inference & serving, Real-time systems, Networking, Speech & audio, System design
  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.
- [How OpenAI delivers low-latency voice AI at scale](https://swe.quest/articles/how-openai-delivers-low-latency-voice-ai-at-scale-fa481a5234e95d30.md): OpenAI · 2026-05-04 · Hard · 13 min read · Networking, Real-time systems, Load balancing, Kubernetes, Speech & audio
  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.
- [Shipping Media Over QUIC at Meta Scale for Instagram Live Ingest](https://swe.quest/articles/shipping-media-over-quic-at-meta-scale-for-instagram-live-ingest-7a7a466e4e081d91.md): Meta Engineering · 2026-10-12 · Medium · 8 min read · Video & media, Networking, Deployment, Real-time systems
  Instagram 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.
- [More Reliable Connections to Your Repls](https://swe.quest/articles/more-reliable-connections-to-your-repls-07578bd14f5efb1d.md): Replit · 2024-03-18 · Medium · 5 min read · Load balancing, System design, Resilience, SRE, Real-time systems
  Replit 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.
- [Better HTTP/1 connection reuse](https://swe.quest/articles/better-http-1-connection-reuse-5d9fec83e52eecb5.md): The Go Blog · 2026-10-14 · Medium · 7 min read · Go, Networking, Performance engineering
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
