Allow upgrading keys before sending CRYPTO frames
@@ -1570,7 +1570,12 @@ where
}
}
if outgoing.is_empty() {
+ if space == self.highest_space {
break;
+ } else {
+ // Keys updated, check for more data to send
+ continue;
+ }
}
let offset = self.spaces[space].crypto_offset;
let outgoing = Bytes::from(outgoing);
