From 7184a2ff1a760127e68ea4f1a2b4210dfebdf3fb Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 19 Nov 2022 12:13:36 +0800 Subject: [PATCH] Windows: Force single thread for cygwin64 --- trunk/auto/options.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/auto/options.sh b/trunk/auto/options.sh index 25d5d7441..6714b2ff8 100755 --- a/trunk/auto/options.sh +++ b/trunk/auto/options.sh @@ -521,6 +521,14 @@ function apply_auto_options() { SRS_SRT=NO fi + # Note that we must use single thread for cygwin64, because there is a bug while publishing is timeout after about + # 25s and the RTMP receiving coroutine not working correctly. Need more time to finger out why, so we just use + # single thread as workaround. + if [[ $SRS_CYGWIN64 == YES && $SRS_SINGLE_THREAD != YES ]]; then + echo "Force single thread for cygwin64" + SRS_SINGLE_THREAD=YES + fi + # parse the jobs for make if [[ ! -z SRS_JOBS ]]; then export SRS_JOBS="--jobs=${SRS_JOBS}"