*/
void drainAllConnections();
+ /**
+ * Drop all connections.
+ *
+ * forceStop() schedules dropAllConnections() to be called in the acceptor's
+ * thread.
+ */
+ void dropAllConnections();
+
protected:
friend class AcceptorHandshakeHelper;
std::chrono::milliseconds acceptLatency,
SSLErrorEnum error) noexcept {}
- /**
- * Drop all connections.
- *
- * forceStop() schedules dropAllConnections() to be called in the acceptor's
- * thread.
- */
- void dropAllConnections();
-
protected:
/**
class AcceptorFactory {
public:
- virtual std::shared_ptr<Acceptor> newAcceptor() = 0;
+ virtual std::shared_ptr<Acceptor> newAcceptor(folly::EventBase*) = 0;
virtual ~AcceptorFactory() = default;
};