Skip to content

Commit 17616a5

Browse files
Use bounded channel for streaming (#6625)
1 parent f43a353 commit 17616a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SignalR/server/Core/src/StreamTracker.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ private class ChannelConverter<T> : IStreamConverter
7878

7979
public ChannelConverter()
8080
{
81-
_channel = Channel.CreateUnbounded<T>();
81+
// TODO: Make this configurable or figure out a good limit
82+
// https://github.com/aspnet/AspNetCore/issues/4399
83+
_channel = Channel.CreateBounded<T>(10);
8284
}
8385

8486
public Type GetItemType()

0 commit comments

Comments
 (0)