Skip to content

Commit

Permalink
test: refactor tests to use tls connection
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhuw committed Mar 20, 2024
1 parent 0b225d9 commit 309672d
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 327 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ testcontainers = { git = "https://github.com/kezhuw/testcontainers-rs.git", bran
assertor = "0.0.2"
assert_matches = "1.5.0"
tempfile = "3.6.0"
maplit = "1.0.2"
rcgen = { version = "0.12.1", features = ["default", "x509-parser"] }
2 changes: 1 addition & 1 deletion src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl Session {
tick.set_missed_tick_behavior(time::MissedTickBehavior::Skip);
let mut channel_closed = false;
depot.start();
while !(channel_closed && depot.is_empty()) {
while !(channel_closed && depot.is_empty() && !conn.wants_write()) {
select! {
_ = conn.readable() => {
self.read_connection(conn, buf)?;
Expand Down
Loading

0 comments on commit 309672d

Please sign in to comment.