summaryrefslogtreecommitdiffstats
path: root/src/bin/server/tls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/server/tls.rs')
-rw-r--r--src/bin/server/tls.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin/server/tls.rs b/src/bin/server/tls.rs
index 5d84589..420b5b4 100644
--- a/src/bin/server/tls.rs
+++ b/src/bin/server/tls.rs
@@ -80,10 +80,7 @@ impl TlsStream {
80 80
81 /// Read timeout for the socket. The connection loop uses a short one so it 81 /// Read timeout for the socket. The connection loop uses a short one so it
82 /// can advance crash rounds while no request is in flight. 82 /// can advance crash rounds while no request is in flight.
83 pub fn set_read_timeout( 83 pub fn set_read_timeout(&self, duration: Option<std::time::Duration>) -> std::io::Result<()> {
84 &self,
85 duration: Option<std::time::Duration>,
86 ) -> std::io::Result<()> {
87 self.stream.get_ref().set_read_timeout(duration) 84 self.stream.get_ref().set_read_timeout(duration)
88 } 85 }
89} 86}