From 6e2787d792de64c003eff03b62a2df798ef851c0 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 20:43:09 +0100 Subject: v2.3.0: add crash with local multiplier and pushed crash event --- src/bin/server/tls.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bin/server/tls.rs') diff --git a/src/bin/server/tls.rs b/src/bin/server/tls.rs index 292ebf7..5d84589 100644 --- a/src/bin/server/tls.rs +++ b/src/bin/server/tls.rs @@ -77,6 +77,15 @@ impl TlsStream { pub fn peer_addr(&self) -> std::io::Result { self.stream.get_ref().peer_addr() } + + /// Read timeout for the socket. The connection loop uses a short one so it + /// can advance crash rounds while no request is in flight. + pub fn set_read_timeout( + &self, + duration: Option, + ) -> std::io::Result<()> { + self.stream.get_ref().set_read_timeout(duration) + } } impl Read for TlsStream { -- cgit v1.2.3