From 640d431b35860913ed376cf781da1b8b1a73d0a4 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 10 May 2021 23:49:57 +0000 Subject: fix(tls): flush send buffer in the background after closing TLS stream (#10146) In #9118, TLS streams were split into a "read half" and a "write half" using tokio::io::split() to allow concurrent Conn#read() and Conn#write() calls without one blocking the other. However, this introduced a bug: outgoing data gets discarded when the TLS stream is gracefully closed, because the read half is closed too early, before all TLS control data has been received. Fixes: #9692 Fixes: #10049 Fixes: #10296 Fixes: denoland/deno_std#750 --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 4f34174c8..fa7d00884 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -713,12 +713,12 @@ dependencies = [ "percent-encoding", "regex", "ring", + "rustls", "serde", "sys-info", "termcolor", "test_util", "tokio", - "tokio-rustls", "tokio-util", "trust-dns-proto", "trust-dns-resolver", -- cgit v1.2.3