WEB Carriers Safe-matrix Refactored

Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
Alexey
2026-08-26 20:33:33 +03:00
parent 8b2b88f30c
commit 34eeb2d856
49 changed files with 3406 additions and 936 deletions
+6 -4
View File
@@ -56,9 +56,11 @@ pub(super) async fn handle_down(
if !body.is_empty() {
return serve_decoy(request, vhost, true, &runtime).await;
}
let _lane_poll = if lane_id.is_some() {
let auxiliary = lane_id.is_some_and(|lane_id| session.lane_poll_is_auxiliary(lane_id));
let Some(permit) = runtime.try_lane_poll(auxiliary) else {
let Some(_down_poll) = runtime.try_lane_poll(false) else {
return service_unavailable();
};
let _control_lane_poll = if lane_id == Some(0) {
let Some(permit) = runtime.try_lane_poll(true) else {
return service_unavailable();
};
Some(permit)
@@ -90,7 +92,7 @@ pub(super) async fn handle_down(
trace.record_frames(
TraceDirection::Response,
&result.body,
&runtime.active_generation().config().web.limits,
session.limits(),
);
}
let mut response = full_response(StatusCode::OK, result.body);