mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-09 10:00:57 +03:00
Clean up initial/handshake ciphers a little more intelligently.
Summary: Right now we are running the handshakeConfirmed code a lot on the client. This is excessive. We only need to run the code if we haven't already dropped the cipher. Reviewed By: yangchi Differential Revision: D27725974 fbshipit-source-id: ca325c132debdd280e447ca30876488b879ff13c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
02d41d8ee7
commit
b16c3b306b
@@ -1664,4 +1664,10 @@ void handshakeConfirmed(QuicConnectionStateBase& conn) {
|
||||
implicitAckCryptoStream(conn, EncryptionLevel::Handshake);
|
||||
}
|
||||
|
||||
bool hasInitialOrHandshakeCiphers(QuicConnectionStateBase& conn) {
|
||||
return conn.initialWriteCipher || conn.handshakeWriteCipher ||
|
||||
conn.readCodec->getInitialCipher() ||
|
||||
conn.readCodec->getHandshakeReadCipher();
|
||||
}
|
||||
|
||||
} // namespace quic
|
||||
|
||||
Reference in New Issue
Block a user