20 using std::unique_ptr;
31 std::shared_ptr<HTTPCodecFactory> codecFactory):
37 std::make_shared<HTTPDefaultSessionCodecFactory>(
accConfig_);
52 if (errorPage ==
nullptr) {
61 const string& nextProtocol,
65 unique_ptr<HTTPCodec>
codec 70 !sock->getSecurityProtocol().empty());
73 VLOG(2) <<
"codecFactory_ failed to provide codec";
81 sock->getLocalAddress(&localAddress);
83 VLOG(3) <<
"couldn't get local address for socket";
94 VLOG(4) <<
"set localAddress=" << localAddress.
describe();
98 VLOG(4) <<
"Created new " << nextProtocol
99 <<
" session for peer " << *peerAddress;
102 localAddress, *peerAddress,
123 Acceptor::addConnection(session);
129 VLOG(6) <<
"attempt to release resource";
AcceptorConfiguration accConfig_
void setWriteBufferLimit(uint32_t limit)
void setSessionStats(HTTPSessionStats *stats) override
virtual void onSessionCreationError(ProxygenError)
virtual const WheelTimerInstance & getTransactionTimeoutSet()
virtual bool getHttp2PrioritiesEnabled()
constexpr detail::Map< Move > move
uint32_t maxConcurrentIncomingStreams
void setMaxConcurrentIncomingStreams(uint32_t num) override
wangle::ConnectionManager::UniquePtr downstreamConnectionManager_
std::string describe() const
HTTPSessionAcceptor(const AcceptorConfiguration &accConfig)
virtual size_t dropIdleConnections(size_t num)
void onNewConnection(folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress *address, const std::string &nextProtocol, wangle::SecureTransportType secureTransportType, const wangle::TransportInfo &tinfo) override
SimpleController simpleController_
bool isFamilyInet() const
folly::SocketAddress bindAddress
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
size_t receiveSessionWindowSize
void setFlowControl(size_t initialReceiveWindow, size_t receiveStreamWindowSize, size_t receiveSessionWindowSize) override
Encoder::MutableCompressedList list
void setEgressSettings(const SettingsList &inSettings) override
virtual const HTTPErrorPage * getErrorPage(const folly::SocketAddress &addr) const
HTTPSessionStats * downstreamSessionStats_
std::unique_ptr< HTTPErrorPage > diagnosticErrorPage_
virtual HTTPSessionController * getController()
void setHTTP2PrioritiesEnabled(bool enabled) override
size_t initialReceiveWindow
bool isPrivateAddress() const
HTTPSession::InfoCallback * sessionInfoCb_
SettingsList egressSettings
std::unique_ptr< HTTPErrorPage > defaultErrorPage_
size_t receiveStreamWindowSize
static const folly::SocketAddress unknownSocketAddress_
ThreadPoolListHook * addr
std::shared_ptr< HTTPCodecFactory > codecFactory_
~HTTPSessionAcceptor() override