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,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