diff --git a/CHANGELOG.md b/CHANGELOG.md index 275d776..3aa7ccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog ## Release 1.1.2 -- Fixed issue that blocks the receiver of a file while the file was sending. +- Fixed an issue that blocks the receiver of a file while the file was sending. +- Fixed an issue that appended data to the end of the file once transfered. +- Fixed an issue that lost some data in the file transfer. ## Release 1.1.1 - Fixed minor visual printed line removed. diff --git a/Cargo.lock b/Cargo.lock index b7ce0fc..e886a7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -239,9 +239,9 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] name = "message-io" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0b05b3180602b6529c59002a857ae4e0ef733c05a144788bc7cdb265160f41" +checksum = "d36260d00ffc360b76f59029be4e2c5451048f650d925f5b2c327e35af6a3928" dependencies = [ "bincode", "crossbeam-channel", diff --git a/Cargo.toml b/Cargo.toml index 62de991..1045804 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ categories = ["command-line-utilities", "command-line-interface"] maintenance = { status = "actively-developed" } [dependencies] -message-io = "0.4.5" +message-io = "0.4.6" serde = { version = "1.0.116", features = ["derive"] } crossterm = "0.18.0" tui = { version = "0.12.0", default-features = false, features = ['crossterm'] } diff --git a/src/commands/send_file.rs b/src/commands/send_file.rs index 531afd7..579f105 100644 --- a/src/commands/send_file.rs +++ b/src/commands/send_file.rs @@ -33,7 +33,7 @@ pub struct SendFile { } impl SendFile { - const CHUNK_SIZE: usize = 65535; + const CHUNK_SIZE: usize = 32768; pub fn new(file_path: &str) -> Result { const READ_FILENAME_ERROR: &str = "Unable to read file name";