We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77714ae commit 6c3345fCopy full SHA for 6c3345f
crates/shadowsocks/src/config.rs
@@ -279,15 +279,6 @@ impl ServerConfig {
279
self.timeout
280
}
281
282
- /// Timeout for established tunnels (connection)
283
- pub fn connection_timeout(&self) -> Duration {
284
- // Connection should be kept at least 24 hours.
285
- // Otherwise connection will be closed accidently if there are no data exchanged from both ends.
286
- static MIN_CONNECTION_TIMEOUT: Duration = Duration::from_secs(24 * 60 * 60);
287
-
288
- std::cmp::max(MIN_CONNECTION_TIMEOUT, self.timeout.unwrap_or(Duration::from_secs(0)))
289
- }
290
291
/// Get server's remark
292
pub fn remarks(&self) -> Option<&str> {
293
self.remarks.as_ref().map(AsRef::as_ref)
0 commit comments