pub async fn spawn_loopback_middlewares_with_delay(
ips: Vec<String>,
base_delay_ms: u64,
jitter_max_ms: u64,
) -> VecDeque<(P2mApiDefaultStack<M2mLoopback>, O2mApiDefaultStack<M2mLoopback>)>Expand description
Spawns multiple loopback middleware instances with network delay simulation.
Creates middleware instances with configurable network delay simulation for testing timeout handling and performance under various network conditions.
ยงArguments
ips- Vector of IP addresses for the middleware instancesbase_delay_ms- Base network delay in millisecondsjitter_max_ms- Maximum additional random delay in milliseconds