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)
31
31
ConnectionContext = connectionContext ,
32
32
ServiceContext = _serviceContext ,
33
33
ConnectionFeatures = connectionContext . Features ,
34
- MemoryPool = memoryPoolFeature . MemoryPool ,
34
+ MemoryPool = memoryPoolFeature ? . MemoryPool ?? System . Buffers . MemoryPool < byte > . Shared ,
35
35
LocalEndPoint = connectionContext . LocalEndPoint as IPEndPoint ,
36
36
RemoteEndPoint = connectionContext . RemoteEndPoint as IPEndPoint
37
37
} ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public Task OnConnectionAsync(ConnectionContext connectionContext)
33
33
Protocols = _protocols ,
34
34
ServiceContext = _serviceContext ,
35
35
ConnectionFeatures = connectionContext . Features ,
36
- MemoryPool = memoryPoolFeature . MemoryPool ,
36
+ MemoryPool = memoryPoolFeature ? . MemoryPool ?? System . Buffers . MemoryPool < byte > . Shared ,
37
37
Transport = connectionContext . Transport ,
38
38
LocalEndPoint = connectionContext . LocalEndPoint as IPEndPoint ,
39
39
RemoteEndPoint = connectionContext . RemoteEndPoint as IPEndPoint
You can’t perform that action at this time.
0 commit comments