diff options
-rw-r--r-- | hbak_common/src/conn.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hbak_common/src/conn.rs b/hbak_common/src/conn.rs index 5fcbcf5..a9faebf 100644 --- a/hbak_common/src/conn.rs +++ b/hbak_common/src/conn.rs @@ -297,6 +297,7 @@ impl StreamConn<Idle> { remote_node_name: String, ) -> io::Result<Self> { stream.set_read_timeout(Some(READ_TIMEOUT))?; + stream.set_write_timeout(Some(READ_TIMEOUT))?; let key = Key::from_slice(&key); let nonce = GenericArray::from_slice(&nonce); |