Reuse cancellation token sources in the Kestrel #30390
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
feature-kestrel
Perf
Milestone
Today we use the request aborted token when writing large responses in various places. We can reuse these tokens across requests if they haven't been cancelled. We can take advantage of dotnet/runtime#48492 when it becomes available.
Here's what a simple application that uses the request aborted token looks like:
Here's the allocation profile after ~10K requests
The text was updated successfully, but these errors were encountered: