From 43fe46f0d340fdf27e6b1b51916d0ecf9f6c314b Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Sat, 12 Oct 2024 10:06:19 +0200 Subject: [PATCH] fix(net): decrease budget for header reqs to process before yielding thread (#11636) --- crates/net/network/src/budget.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/net/network/src/budget.rs b/crates/net/network/src/budget.rs index 0b5e3d3a90..2f878cdb2e 100644 --- a/crates/net/network/src/budget.rs +++ b/crates/net/network/src/budget.rs @@ -5,8 +5,8 @@ pub const DEFAULT_BUDGET_TRY_DRAIN_STREAM: u32 = 10; /// Default budget to try and drain headers and bodies download streams. /// -/// Default is 4 iterations. -pub const DEFAULT_BUDGET_TRY_DRAIN_DOWNLOADERS: u32 = 4; +/// Default is 1 iteration. +pub const DEFAULT_BUDGET_TRY_DRAIN_DOWNLOADERS: u32 = 1; /// Default budget to try and drain [`Swarm`](crate::swarm::Swarm). ///