Skip to content

Commit

Permalink
add appContext to tcp channel buidler
Browse files Browse the repository at this point in the history
  • Loading branch information
jfonseca-aneo committed Jan 27, 2025
1 parent 397cadd commit 44dfa9e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ private static ChannelBase BuildWebGrpcChannel(string address,
ILogger logger)
{
using var _ = logger.LogFunction();

// Workaround for connectivity issue: https://github.com/grpc/grpc-dotnet/issues/2361#issuecomment-1895791020
AppContext.SetSwitch("System.Net.SocketsHttpHandler.Http2FlowControl.DisableDynamicWindowSizing",
true);

return Grpc.Net.Client.GrpcChannel.ForAddress(address);
}

Expand Down

0 comments on commit 44dfa9e

Please sign in to comment.