mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +03:00
Check cipher presence before decide to fire write looper for crypto
Summary: they now can be dropped Reviewed By: mjoras Differential Revision: D21476334 fbshipit-source-id: 646b993573fea460b0cd967bdb312cd849ac35d3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2b28b25a05
commit
7bb0dddf34
@@ -1856,6 +1856,8 @@ TEST_F(QuicTransportFunctionsTest, HasCryptoDataToWrite) {
|
||||
conn->cryptoState->initialStream.lossBuffer.emplace_back(
|
||||
folly::IOBuf::copyBuffer("Grab your coat and get your hat"), 0, false);
|
||||
EXPECT_EQ(WriteDataReason::CRYPTO_STREAM, hasNonAckDataToWrite(*conn));
|
||||
conn->initialWriteCipher.reset();
|
||||
EXPECT_EQ(WriteDataReason::NO_WRITE, hasNonAckDataToWrite(*conn));
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, HasControlFramesToWrite) {
|
||||
|
Reference in New Issue
Block a user