spawn_loopback_middlewares_with_delay

Function spawn_loopback_middlewares_with_delay 

Source
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 instances
  • base_delay_ms - Base network delay in milliseconds
  • jitter_max_ms - Maximum additional random delay in milliseconds