mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
research st, add comments for bug #193.
This commit is contained in:
parent
cd09fcaf55
commit
f4dfee0e9f
2 changed files with 3 additions and 1 deletions
|
@ -308,6 +308,8 @@ ST_HIDDEN void _st_epoll_dispatch(void)
|
||||||
timeout = (int) (min_timeout / 1000);
|
timeout = (int) (min_timeout / 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: WINLIN: remove it for bug introduced.
|
||||||
|
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/193
|
||||||
if (_st_epoll_data->pid != getpid()) {
|
if (_st_epoll_data->pid != getpid()) {
|
||||||
/* We probably forked, reinitialize epoll set */
|
/* We probably forked, reinitialize epoll set */
|
||||||
close(_st_epoll_data->epfd);
|
close(_st_epoll_data->epfd);
|
||||||
|
|
|
@ -52,8 +52,8 @@ int sleep_test()
|
||||||
srs_trace("sleep test: start");
|
srs_trace("sleep test: start");
|
||||||
|
|
||||||
srs_trace("1. sleep...");
|
srs_trace("1. sleep...");
|
||||||
|
|
||||||
st_usleep(sleep_ms * 1000);
|
st_usleep(sleep_ms * 1000);
|
||||||
|
|
||||||
srs_trace("2. sleep ok");
|
srs_trace("2. sleep ok");
|
||||||
|
|
||||||
srs_trace("sleep test: end");
|
srs_trace("sleep test: end");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue