mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: move accept log into srt conn cycle
This commit is contained in:
parent
e09daa2d4b
commit
c037f920b2
2 changed files with 2 additions and 2 deletions
|
@ -238,6 +238,8 @@ srs_error_t SrsMpegtsSrtConn::do_cycle()
|
||||||
{
|
{
|
||||||
srs_error_t err = srs_success;
|
srs_error_t err = srs_success;
|
||||||
|
|
||||||
|
srs_trace("SRT client ip=%s:%d, fd=%d", ip_.c_str(), port_, srt_fd_);
|
||||||
|
|
||||||
string streamid = "";
|
string streamid = "";
|
||||||
if ((err = srs_srt_get_streamid(srt_fd_, streamid)) != srs_success) {
|
if ((err = srs_srt_get_streamid(srt_fd_, streamid)) != srs_success) {
|
||||||
return srs_error_wrap(err, "get srt streamid");
|
return srs_error_wrap(err, "get srt streamid");
|
||||||
|
|
|
@ -229,8 +229,6 @@ srs_error_t SrsSrtServer::fd_to_resource(srs_srt_t srt_fd, ISrsStartableConnecit
|
||||||
return srs_error_wrap(err, "get srt ip port");
|
return srs_error_wrap(err, "get srt ip port");
|
||||||
}
|
}
|
||||||
|
|
||||||
srs_trace("accept srt client from %s:%d, fd=%d", ip.c_str(), port, srt_fd);
|
|
||||||
|
|
||||||
// TODO: FIXME: need to check max connection?
|
// TODO: FIXME: need to check max connection?
|
||||||
|
|
||||||
// The context id may change during creating the bellow objects.
|
// The context id may change during creating the bellow objects.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue