diff --git a/.github/workflows/grcov.yml b/.github/workflows/grcov.yml index c27b35fa2..0aef0275c 100644 --- a/.github/workflows/grcov.yml +++ b/.github/workflows/grcov.yml @@ -2,9 +2,10 @@ name: coverage on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -50,8 +51,8 @@ jobs: args: --all --no-fail-fast ${{ matrix.cargo_flags }} env: CARGO_INCREMENTAL: "0" - RUSTFLAGS: '-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug' - RUSTDOCFLAGS: '-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug' + RUSTFLAGS: "-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug" + RUSTDOCFLAGS: "-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off -Cprofile-generate=target/debug" - name: Generate coverage data id: grcov diff --git a/sctp/src/association/mod.rs b/sctp/src/association/mod.rs index 178abc53f..598109665 100644 --- a/sctp/src/association/mod.rs +++ b/sctp/src/association/mod.rs @@ -468,6 +468,7 @@ impl Association { 'outer: while !done.load(Ordering::Relaxed) { //log::debug!("[{}] gather_outbound begin", name); let (packets, continue_loop) = { + tokio::task::yield_now().await; // Yield to allow read_loop to make progress let mut ai = association_internal.lock().await; ai.gather_outbound().await };