winlin

research st, add comments for bug #193.

@@ -308,6 +308,8 @@ ST_HIDDEN void _st_epoll_dispatch(void) @@ -308,6 +308,8 @@ ST_HIDDEN void _st_epoll_dispatch(void)
308 timeout = (int) (min_timeout / 1000); 308 timeout = (int) (min_timeout / 1000);
309 } 309 }
310 310
  311 + // TODO: WINLIN: remove it for bug introduced.
  312 + // @see: https://github.com/winlinvip/simple-rtmp-server/issues/193
311 if (_st_epoll_data->pid != getpid()) { 313 if (_st_epoll_data->pid != getpid()) {
312 /* We probably forked, reinitialize epoll set */ 314 /* We probably forked, reinitialize epoll set */
313 close(_st_epoll_data->epfd); 315 close(_st_epoll_data->epfd);
@@ -52,8 +52,8 @@ int sleep_test() @@ -52,8 +52,8 @@ int sleep_test()
52 srs_trace("sleep test: start"); 52 srs_trace("sleep test: start");
53 53
54 srs_trace("1. sleep..."); 54 srs_trace("1. sleep...");
55 -  
56 st_usleep(sleep_ms * 1000); 55 st_usleep(sleep_ms * 1000);
  56 +
57 srs_trace("2. sleep ok"); 57 srs_trace("2. sleep ok");
58 58
59 srs_trace("sleep test: end"); 59 srs_trace("sleep test: end");