From 07c51665da3797643f9e1c7350ccaba8e61fa6d2 Mon Sep 17 00:00:00 2001 From: quininer Date: Fri, 8 Nov 2019 01:39:20 +0800 Subject: [PATCH] Fix 0-RTT write zero --- src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 632e4ed..8671776 100644 --- a/src/client.rs +++ b/src/client.rs @@ -129,7 +129,9 @@ where Err(err) => return Poll::Ready(Err(err)) }; data.extend_from_slice(&buf[..len]); - return Poll::Ready(Ok(len)); + if len != 0 { + return Poll::Ready(Ok(len)); + } } // complete handshake