Skip to content

Commit 309672d

Browse files
committed
test: refactor tests to use tls connection
1 parent 0b225d9 commit 309672d

File tree

3 files changed

+319
-327
lines changed

3 files changed

+319
-327
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ testcontainers = { git = "https://github.com/kezhuw/testcontainers-rs.git", bran
4444
assertor = "0.0.2"
4545
assert_matches = "1.5.0"
4646
tempfile = "3.6.0"
47-
maplit = "1.0.2"
4847
rcgen = { version = "0.12.1", features = ["default", "x509-parser"] }

src/session/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ impl Session {
443443
tick.set_missed_tick_behavior(time::MissedTickBehavior::Skip);
444444
let mut channel_closed = false;
445445
depot.start();
446-
while !(channel_closed && depot.is_empty()) {
446+
while !(channel_closed && depot.is_empty() && !conn.wants_write()) {
447447
select! {
448448
_ = conn.readable() => {
449449
self.read_connection(conn, buf)?;

0 commit comments

Comments
 (0)