76 std::chrono::steady_clock::time_point acceptTime,
79 clientAddr_(clientAddr),
80 acceptTime_(acceptTime),
88 VLOG(4) <<
"SSL handshake timeout expired";
92 void describe(std::ostream& os)
const override {
93 os <<
"pending handshake on " << clientAddr_;
109 VLOG(10) <<
"Dropping in progress handshake for " << clientAddr_;
110 helper_->dropConnection(reason);
121 details) noexcept
override;
127 details) noexcept
override;
129 std::chrono::milliseconds timeSinceAcceptMs()
const;
133 void startHandshakeTimeout();
AcceptorHandshakeManager(Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo tinfo)
void closeWhenIdle() override
constexpr detail::Map< Move > move
void dropConnection(SSLErrorEnum reason)
folly::SocketAddress clientAddr_
requires E e noexcept(noexcept(s.error(std::move(e))))
void notifyPendingShutdown() override
std::unique_ptr< AsyncSSLSocket, Destructor > UniquePtr
void dropConnection() override
FizzServerAcceptor * acceptor_
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
std::chrono::steady_clock::time_point acceptTime_
virtual void connectionReady(folly::AsyncTransportWrapper::UniquePtr transport, std::string nextProtocol, SecureTransportType secureTransportType, folly::Optional< SSLErrorEnum > sslErr) noexcept=0
virtual void dropConnection(SSLErrorEnum reason=SSLErrorEnum::NO_ERROR)=0
void describe(std::ostream &os) const override
virtual void connectionError(folly::AsyncTransportWrapper *transport, folly::exception_wrapper ex, folly::Optional< SSLErrorEnum > sslErr) noexcept=0
virtual ~Callback()=default
void dumpConnectionState(uint8_t) override
AcceptorHandshakeHelper::UniquePtr helper_
virtual void start(folly::AsyncSSLSocket::UniquePtr sock, AcceptorHandshakeHelper::Callback *callback) noexcept=0
bool isBusy() const override
std::unique_ptr< AcceptorHandshakeHelper, folly::DelayedDestruction::Destructor > UniquePtr
void timeoutExpired() noexceptoverride