Skip to content

Commit

Permalink
Just drop the reclaimed socket
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Nov 15, 2023
1 parent d9d39f2 commit 4bf8660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ pub(super) mod tests {
#[case] swap: bool,
) -> TestResult {
const BUF_SIZE: usize = 1024;
const BUF_COUNT: usize = 10 * 1024;
const BUF_COUNT: usize = 1 * 1024;

let (server, client) = tls_pair_buffer_size(NonZeroUsize::new(65536)).await;
let (server, client) = if swap {
Expand Down Expand Up @@ -1856,7 +1856,7 @@ pub(super) mod tests {

let r = a.await.unwrap();
let w = b.await.unwrap();
r.unsplit(w).close().await.unwrap();
drop(r.unsplit(w));
});
let b = spawn(async move {
let (mut r, _w) = client.into_split();
Expand Down

0 comments on commit 4bf8660

Please sign in to comment.