Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Grpc.Net.Client/GrpcChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,15 @@ private static HttpHandlerContext CalculateHandlerContext(ILogger logger, Uri ad
}
}

// Load balancing has been disabled on the SocketsHttpHandler.
if (socketsHttpHandler.Properties.TryGetValue("__GrpcLoadBalancingDisabled", out var value)
&& value is bool loadBalancingDisabled && loadBalancingDisabled)
{
type = HttpHandlerType.Custom;
connectTimeout = null;
connectionIdleTimeout = null;
}

// If a proxy is specified then requests could be sent via an SSL tunnel.
// A CONNECT request is made to the proxy to establish the transport stream and then
// gRPC calls are sent via stream. This feature isn't supported by load balancer.
Expand Down