Changed maximum number of concurrent RTSP server sessions to 128 (double the maximum number of allowed Sources)
This commit is contained in:
parent
cd6a651014
commit
aeb4e8b0a0
@ -79,13 +79,15 @@ class RtspSession : public std::enable_shared_from_this<RtspSession> {
|
|||||||
|
|
||||||
class RtspServer {
|
class RtspServer {
|
||||||
public:
|
public:
|
||||||
|
constexpr static uint8_t session_num_max{(SessionManager::stream_id_max + 1) * 2};
|
||||||
|
|
||||||
RtspServer() = delete;
|
RtspServer() = delete;
|
||||||
RtspServer(std::shared_ptr<SessionManager> session_manager,
|
RtspServer(std::shared_ptr<SessionManager> session_manager,
|
||||||
std::shared_ptr<Config> config)
|
std::shared_ptr<Config> config)
|
||||||
: session_manager_(session_manager),
|
: session_manager_(session_manager),
|
||||||
config_(config),
|
config_(config),
|
||||||
sessions_(SessionManager::stream_id_max),
|
sessions_(session_num_max),
|
||||||
sessions_start_point_(SessionManager::stream_id_max),
|
sessions_start_point_(session_num_max),
|
||||||
acceptor_(io_service_,
|
acceptor_(io_service_,
|
||||||
tcp::endpoint(boost::asio::ip::address::from_string(
|
tcp::endpoint(boost::asio::ip::address::from_string(
|
||||||
config_->get_ip_addr_str()),
|
config_->get_ip_addr_str()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user