1
0
Fork 0
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:
winlin 2020-10-22 17:06:36 +08:00
parent a14f26971b
commit 97880f6bb7
3 changed files with 21 additions and 2 deletions

View file

@ -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");