#include "extensions/upstreams/http/tcp/config.h" #include "extensions/upstreams/http/tcp/upstream_request.h" namespace Envoy { namespace Extensions { namespace Upstreams { namespace Http { namespace Tcp { Router::GenericConnPoolPtr TcpGenericConnPoolFactory::createGenericConnPool( Upstream::ClusterManager& cm, bool is_connect, const Router::RouteEntry& route_entry, absl::optional downstream_protocol, Upstream::LoadBalancerContext* ctx) const { auto ret = std::make_unique(cm, is_connect, route_entry, downstream_protocol, ctx); return (ret->valid() ? std::move(ret) : nullptr); } REGISTER_FACTORY(TcpGenericConnPoolFactory, Router::GenericConnPoolFactory); } // namespace Tcp } // namespace Http } // namespace Upstreams } // namespace Extensions } // namespace Envoy