mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine resouce management
This commit is contained in:
parent
1173d35e33
commit
64705d1cc8
29 changed files with 364 additions and 177 deletions
|
@ -656,7 +656,7 @@ SrsServer::SrsServer()
|
|||
pid_fd = -1;
|
||||
|
||||
signal_manager = new SrsSignalManager(this);
|
||||
conn_manager = new SrsConnectionManager();
|
||||
conn_manager = new SrsResourceManager("RTMP/API");
|
||||
|
||||
handler = NULL;
|
||||
ppid = ::getppid();
|
||||
|
@ -1575,7 +1575,7 @@ srs_error_t SrsServer::fd2conn(SrsListenerType type, srs_netfd_t stfd, SrsTcpCon
|
|||
return err;
|
||||
}
|
||||
|
||||
void SrsServer::remove(ISrsConnection* c)
|
||||
void SrsServer::remove(ISrsResource* c)
|
||||
{
|
||||
SrsTcpConnection* conn = dynamic_cast<SrsTcpConnection*>(c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue