Lines
100 %
Functions
#include "source/extensions/upstreams/http/tcp/config.h"
#include "source/extensions/upstreams/http/tcp/upstream_request.h"
namespace Envoy {
namespace Extensions {
namespace Upstreams {
namespace Http {
namespace Tcp {
Router::GenericConnPoolPtr TcpGenericConnPoolFactory::createGenericConnPool(
Upstream::HostConstSharedPtr host, Upstream::ThreadLocalCluster& thread_local_cluster,
Router::GenericConnPoolFactory::UpstreamProtocol, Upstream::ResourcePriority priority,
absl::optional<Envoy::Http::Protocol>, Upstream::LoadBalancerContext* ctx,
const Protobuf::Message&) const {
auto ret = std::make_unique<TcpConnPool>(host, thread_local_cluster, priority, ctx);
return (ret->valid() ? std::move(ret) : nullptr);
}
REGISTER_FACTORY(TcpGenericConnPoolFactory, Router::GenericConnPoolFactory);
} // namespace Tcp
} // namespace Http
} // namespace Upstreams
} // namespace Extensions
} // namespace Envoy