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

CreateLinkedTokenSource is high alloc #407

@benaadams

Description

@benaadams

Using CreateLinkedTokenSource allocates more memory than the HttpContext! O_o

Token source

_requestAbortCts = CancellationTokenSource.CreateLinkedTokenSource(_disconnectCts.Token);

https://github.com/aspnet/KestrelHttpServer/blob/dev/src/Microsoft.AspNet.Server.Kestrel/Http/Frame.cs#L251

/cc @davidfowl @halter73

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions