winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.71k stars 567 forks source link

max_streams #244

Open streamingsystems opened 10 months ago

streamingsystems commented 10 months ago

Good day sir,

We love your module.

This is not a bug but a quick question.

There is a setting "max_streams" and I am not sure what this does. We want to have our server at maximum capacity and not sure what to put this value ut.

https://github.com/arut/nginx-rtmp-module/wiki/Directives#max_streams

I looked through the source code and was unable to determine that this value does.

The documents say this:

Sets maximum number of RTMP streams. Data streams are multiplexed into a single data stream. Different channels are used for sending commands, audio, video etc. Default value is 32 which is usually ok for many cases.

I understand what "max_connections" means and we leave that off by default (so we have unlimited connections).

Is max_streams the number of concurrent RTMP streams that can be connected at one single time? In other words if we have one encoder connected sending the data and 2 RTMP "clients" connected and reading the data, that would count as "3".

The default for this says "32" does that mean that if you have 32 RTMP connections at one time and you try to connect one more it will get rejected?

Thanks of you time.