mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merged master
This commit is contained in:
commit
c87e55a2cc
45 changed files with 2155 additions and 1144 deletions
|
|
@ -111,3 +111,17 @@ void srs_vhost_resolve(std::string& vhost, std::string& app)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void srs_close_stfd(st_netfd_t& stfd)
|
||||
{
|
||||
if (stfd) {
|
||||
int fd = st_netfd_fileno(stfd);
|
||||
st_netfd_close(stfd);
|
||||
stfd = NULL;
|
||||
|
||||
// st does not close it sometimes,
|
||||
// close it manually.
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue