Use bounded channel for streaming (#6625)

This commit is contained in:
BrennanConroy 2019-01-15 16:51:31 -08:00 committed by GitHub
parent f43a353021
commit 17616a5dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ namespace Microsoft.AspNetCore.SignalR
public ChannelConverter()
{
_channel = Channel.CreateUnbounded<T>();
// TODO: Make this configurable or figure out a good limit
// https://github.com/aspnet/AspNetCore/issues/4399
_channel = Channel.CreateBounded<T>(10);
}
public Type GetItemType()