Skip to content

Commit 6c3345f

Browse files
committed
removed unused config method
1 parent 77714ae commit 6c3345f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/shadowsocks/src/config.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,6 @@ impl ServerConfig {
279279
self.timeout
280280
}
281281

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-
291282
/// Get server's remark
292283
pub fn remarks(&self) -> Option<&str> {
293284
self.remarks.as_ref().map(AsRef::as_ref)

0 commit comments

Comments
 (0)