Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Do not allocate large write task queues (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym authored Jul 21, 2016
1 parent 7b7e288 commit 6bcf764
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class SocketOutput : ISocketOutput

private const int _maxPendingWrites = 3;
private const int _maxBytesPreCompleted = 65536;
private const int _initialTaskQueues = 64;
// Well behaved WriteAsync users should await returned task, so there is no need to allocate more per connection by default
private const int _initialTaskQueues = 1;
private const int _maxPooledWriteContexts = 32;

private static readonly WaitCallback _returnBlocks = (state) => ReturnBlocks((MemoryPoolBlock)state);
Expand Down

0 comments on commit 6bcf764

Please sign in to comment.