File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Servers/Kestrel/Core/src/Middleware Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public Task OnConnectionAsync(MultiplexedConnectionContext connectionContext)
3131 ConnectionContext = connectionContext ,
3232 ServiceContext = _serviceContext ,
3333 ConnectionFeatures = connectionContext . Features ,
34- MemoryPool = memoryPoolFeature . MemoryPool ,
34+ MemoryPool = memoryPoolFeature ? . MemoryPool ?? System . Buffers . MemoryPool < byte > . Shared ,
3535 LocalEndPoint = connectionContext . LocalEndPoint as IPEndPoint ,
3636 RemoteEndPoint = connectionContext . RemoteEndPoint as IPEndPoint
3737 } ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public Task OnConnectionAsync(ConnectionContext connectionContext)
3333 Protocols = _protocols ,
3434 ServiceContext = _serviceContext ,
3535 ConnectionFeatures = connectionContext . Features ,
36- MemoryPool = memoryPoolFeature . MemoryPool ,
36+ MemoryPool = memoryPoolFeature ? . MemoryPool ?? System . Buffers . MemoryPool < byte > . Shared ,
3737 Transport = connectionContext . Transport ,
3838 LocalEndPoint = connectionContext . LocalEndPoint as IPEndPoint ,
3939 RemoteEndPoint = connectionContext . RemoteEndPoint as IPEndPoint
You can’t perform that action at this time.
0 commit comments