Skip to content

Commit

Permalink
flush() after write_all()
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom committed Jan 29, 2024
1 parent 9e0a7a4 commit 6d78222
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.2] - 2024-01-29

### Fixed

- Add flush() after write_all() to ensure all data is sent


## [1.0.1] - 2024-01-29

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rpcn"
version = "1.0.1"
version = "1.0.2"
authors = ["RipleyTom <RipleyTom@users.noreply.github.com>"]
edition = "2021"

Expand Down
1 change: 1 addition & 0 deletions src/server/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ impl Client {
let fut_sock_writer = async move {
while let Some(outgoing_packet) = channel_receiver.recv().await {
let _ = tls_writer.write_all(&outgoing_packet).await;
let _ = tls_writer.flush().await;
}
let _ = tls_writer.shutdown().await;
};
Expand Down

0 comments on commit 6d78222

Please sign in to comment.