mirror of
https://github.com/telemt/telemt.git
synced 2026-10-10 11:25:57 +03:00
Bound Direct relay buffers with an adaptive global memory envelope
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -85,6 +85,9 @@ fn watchdog_delta(current: u64, previous: u64) -> u64 {
|
||||
}
|
||||
|
||||
mod io;
|
||||
mod adaptive_copy;
|
||||
|
||||
pub(crate) use self::adaptive_copy::relay_direct_adaptive;
|
||||
|
||||
use self::io::{CombinedStream, SharedCounters, StatsIo, is_quota_io_error};
|
||||
#[cfg(test)]
|
||||
@@ -217,6 +220,7 @@ where
|
||||
.await
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub async fn relay_bidirectional_with_activity_timeout_lease_and_cancel<CR, CW, SR, SW>(
|
||||
client_reader: CR,
|
||||
client_writer: CW,
|
||||
|
||||
Reference in New Issue
Block a user