Skip to content

Commit

Permalink
Windows: Force single thread for cygwin64
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 19, 2022
1 parent 220980d commit 7184a2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions trunk/auto/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 7184a2f

Please sign in to comment.