1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

reorder the config functions. add comments for st to support 100k threads, use MALLOC_STACK macro.

This commit is contained in:
winlin 2014-08-27 12:28:05 +08:00
parent 42a43c69cd
commit 839101a036
3 changed files with 28 additions and 26 deletions

View file

@ -545,6 +545,8 @@ int SrsServer::initialize_st()
}
srs_verbose("st_set_eventsys use linux epoll success");
// @remark, st alloc segment use mmap, which only support 32757 threads,
// if need to support more, for instance, 100k threads, define the macro MALLOC_STACK.
if(st_init() != 0){
ret = ERROR_ST_INITIALIZE;
srs_error("st_init failed. ret=%d", ret);