Fix 0-RTT write zero

This commit is contained in:
quininer 2019-11-08 01:39:20 +08:00
parent 8b3bf3a2b6
commit 07c51665da

View File

@ -129,8 +129,10 @@ where
Err(err) => return Poll::Ready(Err(err)) Err(err) => return Poll::Ready(Err(err))
}; };
data.extend_from_slice(&buf[..len]); data.extend_from_slice(&buf[..len]);
if len != 0 {
return Poll::Ready(Ok(len)); return Poll::Ready(Ok(len));
} }
}
// complete handshake // complete handshake
while stream.session.is_handshaking() { while stream.session.is_handshaking() {