hyperlane-plugin-concurrency 23.3.2

A lock-free atomic global and per-route-prefix in-flight concurrency limiter and adaptive load-shedding plugin for the Hyperlane framework with optional bounded Tokio Semaphore queuing, leak-proof RAII Context permits, and prebuilt 503 Retry-After wire responses.
Documentation
mod concurrency;

use super::*;

use std::{
    hint::black_box,
    io,
    net::TcpListener,
    str::{Utf8Error, from_utf8},
    sync::Arc,
};

use hyperlane::{
    Server, ServerConfig, ServerControlHook, ServerError, ServerProtocol,
    tokio::{
        self,
        io::{AsyncReadExt, AsyncWriteExt},
        net::TcpStream,
        spawn,
        sync::Notify,
        task::{JoinError, JoinHandle},
        time::{error::Elapsed, sleep},
    },
};