Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If CDN is used mostly for publishing and playing RTMP streams, and Keep Alive packets is disabled on CDN servers for some reason (for example, publishers and players do not support Keep Alives), it is necessary to setup read and write timeouts to control state of RTMP connections state. Those settings in CDN have some following issues:

1. Read timeout can be set on Origin server that is used only to publish streams only, without playing streams , which will not be played directly from the Origin server

Code Block
themeRDark
keep_alive.algorithm=NONE
rtmp.use_server_socket_timeout=true
rtmp.serverread_socket_timeout=120

2. Write timeout can be used set on Edge server only. In this case, it is possible that is used only to play CDN streams from Edge server and to publish local streams on it.

Code Block
themeRDark
keep_alive.algorithm=NONE
rtmp.server_write_socket_timeout=120

3. Read and write timeout can be used both on Origin and Edge servers

Code Block
themeRDark
keep_alive.algorithm=NONE
rtmp.server_write_socket_timeout=120

Quick manual on testing

...