mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Allow set the default stack size
This commit is contained in:
parent
a14f26971b
commit
97880f6bb7
3 changed files with 21 additions and 2 deletions
|
@ -82,6 +82,9 @@ srs_error_t SrsRecvThread::start()
|
|||
|
||||
srs_freep(trd);
|
||||
trd = new SrsSTCoroutine("recv", this, _parent_cid);
|
||||
|
||||
//change stack size to 256K, fix crash when call some 3rd-part api.
|
||||
((SrsSTCoroutine*)trd)->set_stack_size(1 << 18);
|
||||
|
||||
if ((err = trd->start()) != srs_success) {
|
||||
return srs_error_wrap(err, "recv thread");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue