Since v0.9.9 it’s now possible to limit the number of simultaneous RTMP connections to nginx-rtmp. The new directive is max_connections. By default there’s no limit on connection number.
Connection number is stored in shared memory so it affects all workers. Auto-push connections as well as relay connections (push/pull) are also limited by this engine.