diff options
author | Himbeer <himbeerserverde@gmail.com> | 2024-02-19 17:16:37 +0100 |
---|---|---|
committer | Himbeer <himbeerserverde@gmail.com> | 2024-02-19 17:16:37 +0100 |
commit | c0e99b62ee0ffa8829e259f230f4583450c26334 (patch) | |
tree | 410ff49d26a03eff9e024cbf0a5198a2f6d040a4 | |
parent | 085a3b209a7250b1c4b6cc979e05611819bcc7f6 (diff) |
data_sync: send in chunks of 16 + CHUNKSIZE
-rw-r--r-- | hbak_common/src/conn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hbak_common/src/conn.rs b/hbak_common/src/conn.rs index 93da2db..a8ebe3f 100644 --- a/hbak_common/src/conn.rs +++ b/hbak_common/src/conn.rs @@ -444,7 +444,7 @@ impl StreamConn<Active> { }; let send_chunk = |stream_conn: &Self, r: &mut R| -> Result<bool, NetworkError> { - let mut chunk = vec![0; CHUNKSIZE]; + let mut chunk = vec![0; 16 + CHUNKSIZE]; let n = r.read(&mut chunk)?; chunk.truncate(n); |