From 4f4fa8be938390ffff15fedea95e2f1d0d1c1b85 Mon Sep 17 00:00:00 2001 From: Reggie Cushing Date: Sat, 31 May 2025 13:57:14 +0200 Subject: [PATCH 1/2] Added a yield point in the gather_outbound loop to allow read_loop to make progress, improving overall system responsiveness. --- sctp/src/association/mod.rs | 1 + 1 file changed, 1 insertion(+) 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 }; From dfdaa7e481b858427e1eb7434b7f88c6eada052f Mon Sep 17 00:00:00 2001 From: Reggie Cushing Date: Sat, 31 May 2025 13:59:17 +0200 Subject: [PATCH 2/2] Updated GitHub Actions workflow to simplify branch filtering in `grcov.yml` file. --- .github/workflows/grcov.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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