diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 22:16:15 +0100 |
| commit | bc0de9955c375cf27d52c9934403964205afc182 (patch) | |
| tree | 42799fb426fb0ec164f44c92a63525003c582f35 /src/bin/server/tls.rs | |
| parent | initial connection timeout set to 10s (diff) | |
| download | zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.tar.gz zagan-bet-bc0de9955c375cf27d52c9934403964205afc182.zip | |
formatting
Diffstat (limited to 'src/bin/server/tls.rs')
| -rw-r--r-- | src/bin/server/tls.rs | 5 |
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 | } |
