Aspnetcore: [SignalR] Allow controlling maximum buffer size on client

Created on 12 Dec 2019  路  9Comments  路  Source: dotnet/aspnetcore

We currently allow control over the "maximum buffer size" on the server: https://docs.microsoft.com/en-us/aspnet/core/signalr/configuration?view=aspnetcore-3.1&tabs=dotnet#advanced-http-configuration-options

(We derive the PauseWriterThreshold and ResumeWriterThreshold values from that).

However, we don't let the .NET client configure this. We should consider doing so to allow the client better control over backpressure.

affected-very-few area-signalr enhancement good first issue help wanted severity-nice-to-have

All 9 comments

Removing milestone to bring back to triage.

We've had another customer report about this.

There鈥檚 2 work items. Set a default. Make it configurable

Right, and if we backport, we can only backport the default value

I may take stab at this. We should make sure we have a way to very the memory behavior on our performance lab.

Right, and if we backport, we can only backport the default value

And also should have an AppContext switch to disable this just in case.

I'll do this one. @BrennanConroy I'm assuming it's much easier to test this with the new performance infrastructure right?

馃樁
Not sure about easier currently.

@BrennanConroy it should also be possible to update the client binaries trivially right 馃槃

Yeah, adding something like --load.options.outputFiles <filename> to the command line should do that.

Was this page helpful?
0 / 5 - 0 ratings