Fix 0-RTT write zero
This commit is contained in:
parent
8b3bf3a2b6
commit
07c51665da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user