aboutsummaryrefslogtreecommitdiff
path: root/hbak_common/src/conn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'hbak_common/src/conn.rs')
-rw-r--r--hbak_common/src/conn.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/hbak_common/src/conn.rs b/hbak_common/src/conn.rs
index dca5769..e50d868 100644
--- a/hbak_common/src/conn.rs
+++ b/hbak_common/src/conn.rs
@@ -24,8 +24,9 @@ pub const DEFAULT_PORT: u16 = 20406;
/// TCP connect timeout. Connection attempt is aborted if remote doesn't respond.
pub const CONNECT_TIMEOUT: Duration = Duration::from_secs(30);
-/// TCP read timeout. Internal value for [`StreamConn::data_sync`] receive thread cancellation.
-const READ_TIMEOUT: Duration = Duration::from_millis(200);
+/// TCP read timeout. Used for cancellation of [`StreamConn::data_sync`] receive thread
+/// and `hbakd` TCP accept loop.
+pub const READ_TIMEOUT: Duration = Duration::from_millis(200);
mod private {
pub trait Sealed {}