Skip to content

Make RTMP ping and ping_timeout configurable - #7846

Merged
Chocobozzz merged 2 commits into
Chocobozzz:developfrom
BgameB:feat-7719-rtmp-ping-config
Nov 5, 2026
Merged

Chocobozzz merged 2 commits into
Chocobozzz:developfrom
BgameB:feat-7719-rtmp-ping-config

Conversation

@baptiste-bcn

Copy link
Copy Markdown
Contributor

Description

The RTMP keepalive interval (ping) and dead-connection timeout (ping_timeout) were hardcoded in VIDEO_LIVE.RTMP (60s / 30s) and passed straight to node-media-server, so admins couldn't tune how fast a dead ingest connection frees the publisher slot.

This PR exposes them in the live.rtmp config block, with the current values as defaults (no behavior change unless overridden):

live:
  rtmp:
    ping: 60
    ping_timeout: 30

Changes:

  • add ping / ping_timeout to default.yaml and production.yaml.example
  • read them in config.ts as static keys (the RTMP server is configured once at startup) and add them to the config check
  • use them in live-manager.ts instead of the removed VIDEO_LIVE.RTMP.PING / PING_TIMEOUT constants
  • add PEERTUBE_LIVE_RTMP_PING / PEERTUBE_LIVE_RTMP_PING_TIMEOUT Docker environment variables
  • regenerate config-schema.json

Related issues

Fixes #7719

Has this been tested?

Build and lint pass.

@baptiste-bcn
baptiste-bcn force-pushed the feat-7719-rtmp-ping-config branch from a7dcf0a to eb59a7f Compare October 28, 2026 14:32
@baptiste-bcn

Copy link
Copy Markdown
Contributor Author

Hi @Chocobozzz, all checks are green after rebasing on the latest develop. Let me know if you'd like any changes. Thanks!

@Chocobozzz
Chocobozzz merged commit a014933 into Chocobozzz:develop Nov 5, 2026
22 checks passed
@Chocobozzz

Copy link
Copy Markdown
Owner

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make RTMP ping_timeout / ping configurable

2 participants