mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srt_epoll_clear_usocks
This commit is contained in:
parent
548c918efb
commit
1a1d0e9267
1 changed files with 1 additions and 3 deletions
|
@ -187,9 +187,6 @@ void srt_server::on_work()
|
||||||
}
|
}
|
||||||
_handle_ptr->check_alive();
|
_handle_ptr->check_alive();
|
||||||
|
|
||||||
srs_info("srt server epoll get: ret=%d, rfd_num=%d, wfd_num=%d",
|
|
||||||
ret, rfd_num, wfd_num);
|
|
||||||
|
|
||||||
for (int index = 0; index < rfd_num; index++) {
|
for (int index = 0; index < rfd_num; index++) {
|
||||||
SRT_SOCKSTATUS status = srt_getsockstate(read_fds[index]);
|
SRT_SOCKSTATUS status = srt_getsockstate(read_fds[index]);
|
||||||
if (_server_socket == read_fds[index]) {
|
if (_server_socket == read_fds[index]) {
|
||||||
|
@ -208,6 +205,7 @@ void srt_server::on_work()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
srt_epoll_clear_usocks(_pollid);
|
||||||
}
|
}
|
||||||
|
|
||||||
SrtServerAdapter::SrtServerAdapter()
|
SrtServerAdapter::SrtServerAdapter()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue