mirror of
https://github.com/facebookincubator/mvfst.git
synced 2026-01-06 03:41:10 +03:00
Add hasReadCipher
Summary: This is one of the pre-condition of starting d6d probing. Starting d6d once hasWriterCipher() is too early becaue an overlarge PMTU could potentially cause the server to send oversized handshake packet and disrupt handshake. Reviewed By: yangchi Differential Revision: D23698784 fbshipit-source-id: f18824a8ef516421832d8cc769f4880a0841e492
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7c56464fdb
commit
4edeb4b056
@@ -304,6 +304,11 @@ bool QuicServerTransport::hasWriteCipher() const {
|
||||
return conn_->oneRttWriteCipher != nullptr;
|
||||
}
|
||||
|
||||
bool QuicServerTransport::hasReadCipher() const {
|
||||
return conn_->readCodec != nullptr &&
|
||||
conn_->readCodec->getOneRttReadCipher() != nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<QuicTransportBase> QuicServerTransport::sharedGuard() {
|
||||
return shared_from_this();
|
||||
}
|
||||
|
||||
@@ -138,6 +138,7 @@ class QuicServerTransport
|
||||
void maybeNotifyConnectionIdBound();
|
||||
void maybeWriteNewSessionTicket();
|
||||
void maybeIssueConnectionIds();
|
||||
bool hasReadCipher() const;
|
||||
|
||||
private:
|
||||
RoutingCallback* routingCb_{nullptr};
|
||||
|
||||
Reference in New Issue
Block a user