mirror of
https://github.com/telemt/telemt.git
synced 2026-10-30 20:40:51 +03:00
Bounded WEB HTTP conveyor with replay-safe streaming downlink added
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -337,6 +337,11 @@ impl Drop for WebSocketBudgetLease {
|
||||
}
|
||||
|
||||
impl WebProcessRuntime {
|
||||
/// Reserves a parked future uplink without consuming the head request's capacity.
|
||||
pub(crate) fn try_conveyor_waiter(&self) -> Option<OwnedSemaphorePermit> {
|
||||
Arc::clone(&self.conveyor_waiters).try_acquire_owned().ok()
|
||||
}
|
||||
|
||||
/// Reserves one body reader and its declared bounded body allocation.
|
||||
pub(crate) fn try_body_budget(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user