|
| TestableAcceptor (const ServerSocketConfig &accConfig) |
|
| ~TestableAcceptor () override |
|
void | setActiveConnectionCountForLoadShedding (const uint64_t activeConnectionCountForLoadShedding) |
|
void | setConnectionCountForLoadShedding (const uint64_t connectionCountForLoadShedding) |
|
| Acceptor (const ServerSocketConfig &accConfig) |
|
| ~Acceptor () override |
|
virtual void | setSSLCacheProvider (const std::shared_ptr< SSLCacheProvider > &cacheProvider) |
|
virtual void | init (folly::AsyncServerSocket *serverSocket, folly::EventBase *eventBase, SSLStats *stats=nullptr) |
|
virtual void | resetSSLContextConfigs () |
|
void | addSSLContextConfig (const SSLContextConfig &sslCtxConfig) |
|
SSLContextManager * | getSSLContextManager () const |
|
virtual void | setTLSTicketSecrets (const std::vector< std::string > &oldSecrets, const std::vector< std::string > ¤tSecrets, const std::vector< std::string > &newSecrets) |
|
uint32_t | getNumConnections () const |
|
virtual folly::EventBase * | getEventBase () const |
|
virtual wangle::ConnectionManager * | getConnectionManager () |
|
void | addConnection (wangle::ManagedConnection *connection) |
|
State | getState () const |
|
std::chrono::milliseconds | getConnTimeout () const |
|
const std::string & | getName () const |
|
std::chrono::milliseconds | getSSLHandshakeTimeout () const |
|
void | setGracefulShutdownTimeout (std::chrono::milliseconds gracefulShutdown) |
|
std::chrono::milliseconds | getGracefulShutdownTimeout () const |
|
virtual void | forceStop () |
|
bool | isSSL () const |
|
const ServerSocketConfig & | getConfig () const |
|
virtual void | onDoneAcceptingConnection (int fd, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime) noexcept |
|
void | processEstablishedConnection (int fd, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) noexcept |
|
virtual void | startHandshakeManager (folly::AsyncSSLSocket::UniquePtr sslSock, Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) noexcept |
|
void | drainAllConnections () |
|
virtual void | drainConnections (double pctToDrain) |
|
void | dropAllConnections () |
|
virtual void | dropConnections (double pctToDrop) |
|
virtual void | plaintextConnectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocolName, SecureTransportType secureTransportType, TransportInfo &tinfo) |
|
void | connectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocolName, SecureTransportType secureTransportType, TransportInfo &tinfo) |
|
virtual void | sslConnectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocol, SecureTransportType secureTransportType, TransportInfo &tinfo) |
|
virtual void | sslConnectionError (const folly::exception_wrapper &ex) |
|
virtual void | updateSSLStats (const folly::AsyncTransportWrapper *, std::chrono::milliseconds, SSLErrorEnum) noexcept |
|
virtual | ~AcceptCallback ()=default |
|
virtual void | acceptStarted () noexcept |
|
virtual | ~Callback ()=default |
|
virtual void | onListenPaused () noexcept |
|
virtual void | onListenResumed () noexcept |
|
virtual | ~Callback ()=default |
|
|
uint64_t | getConnectionCountForLoadShedding () const override |
|
uint64_t | getActiveConnectionCountForLoadShedding () const override |
|
virtual uint64_t | getWorkerMaxConnections () const |
|
virtual bool | canAccept (const folly::SocketAddress &) |
|
virtual void | onNewConnection (folly::AsyncTransportWrapper::UniquePtr, const folly::SocketAddress *, const std::string &, SecureTransportType, const TransportInfo &) |
|
void | onListenStarted () noexceptoverride |
|
void | onListenStopped () noexceptoverride |
|
void | onDataAvailable (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &, std::unique_ptr< folly::IOBuf >, bool) noexceptoverride |
|
virtual folly::AsyncSocket::UniquePtr | makeNewAsyncSocket (folly::EventBase *base, int fd) |
|
virtual folly::AsyncSSLSocket::UniquePtr | makeNewAsyncSSLSocket (const std::shared_ptr< folly::SSLContext > &ctx, folly::EventBase *base, int fd) |
|
virtual void | onConnectionsDrained () |
|
void | connectionAccepted (int fd, const folly::SocketAddress &clientAddr) noexceptoverride |
|
void | acceptError (const std::exception &ex) noexceptoverride |
|
void | acceptStopped () noexceptoverride |
|
void | onEmpty (const wangle::ConnectionManager &cm) override |
|
void | onConnectionAdded (const ManagedConnection *) override |
|
void | onConnectionRemoved (const ManagedConnection *) override |
|
void | setLoadShedConfig (std::shared_ptr< const LoadShedConfiguration > loadShedConfig, const IConnectionCounter *counter) |
|
virtual void | initDownstreamConnectionManager (folly::EventBase *eventBase) |
|
virtual DefaultToFizzPeekingCallback * | getFizzPeeker () |
|
virtual std::shared_ptr< fizz::server::FizzServerContext > | createFizzContext () |
|
virtual std::shared_ptr< fizz::server::TicketCipher > | createFizzTicketCipher (folly::Optional< std::string >=folly::none) |
|
void | updateFizzContext (fizz::server::FizzServerContext *) |
|
Definition at line 32 of file AcceptorTest.cpp.