12 #include <glog/logging.h> 15 using namespace folly;
21 void describe(std::ostream& )
const override {}
22 bool isBusy()
const override {
return false; }
54 socket->addAcceptCallback(&acceptor, &base);
72 CHECK(acceptor.
getState() == Acceptor::State::kRunning);
TestAcceptor(const ServerSocketConfig &accConfig)
uint32_t getNumConnections() const
bool isBusy() const override
void dumpConnectionState(uint8_t) override
EventBase * getEventBase()
void dropConnection() override
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
void describe(std::ostream &) const override
void closeWhenIdle() override
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
void notifyPendingShutdown() override
static std::shared_ptr< AsyncServerSocket > newSocket(EventBase *evb=nullptr)
NetworkSocket socket(int af, int type, int protocol)
static std::shared_ptr< AsyncSocket > newSocket(EventBase *evb)
void onNewConnection(folly::AsyncTransportWrapper::UniquePtr, const folly::SocketAddress *, const std::string &, SecureTransportType, const TransportInfo &) override
TEST(SequencedExecutor, CPUThreadPoolExecutor)
virtual void init(folly::AsyncServerSocket *serverSocket, folly::EventBase *eventBase, SSLStats *stats=nullptr)
void timeoutExpired() noexceptoverride