pub struct ListenerLimits {
pub max_pending: usize,
pub pending_tick: Duration,
pub cookie_key_rotation: Duration,
pub recent_accept_ttl: Duration,
}Available on crate feature
tokio only.Expand description
The listener’s own bounds, chosen by the caller of SrtListener::bind through
IoConfig::listener.
Fields§
§max_pending: usizeUpper bound on concurrently in-progress handshakes, and on remembered CONCLUSION responses (one per recently accepted source address). Every new source address that sends an INDUCTION allocates an entry; without a cap a flood of (possibly spoofed) handshake packets exhausts memory before any of them times out.
pending_tick: DurationHow often accept drives pending-handshake expiry and retransmits, independent of receive activity.
How often the SYN-cookie key is replaced (§4.3.1.1 buckets the cookie’s time input to one minute).
recent_accept_ttl: DurationHow long an accepted connection’s CONCLUSION response is remembered so a repeated CONCLUSION (the response was lost) can be answered again.
Trait Implementations§
Source§impl Clone for ListenerLimits
impl Clone for ListenerLimits
impl Copy for ListenerLimits
Source§impl Debug for ListenerLimits
impl Debug for ListenerLimits
impl Eq for ListenerLimits
Source§impl PartialEq for ListenerLimits
impl PartialEq for ListenerLimits
impl StructuralPartialEq for ListenerLimits
Auto Trait Implementations§
impl Forget for ListenerLimits
impl Freeze for ListenerLimits
impl Move for ListenerLimits
impl RefUnwindSafe for ListenerLimits
impl Send for ListenerLimits
impl Sync for ListenerLimits
impl Unpin for ListenerLimits
impl UnsafeUnpin for ListenerLimits
impl UnwindSafe for ListenerLimits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more