Open
Description
ASP.NET Core currently uses an environment variable to drive the temp directory, falling back Path.GetTempPath()
. See https://github.com/aspnet/AspNetCore/blob/56e2080ef7741dea9a5c24a8e0639b0921be2d22/src/Http/Http/src/Internal/BufferingHelper.cs#L18-L39.
This path is currently in use by FileBufferingReadStream
and as of #9015 change, by FileBufferingWriteStream
.
This is one of the few parts of the stack that is only configurable via environment variable. We should instead follow the regular pattern of having an option type (that can be configured via configuration) and use those in when constructing these streams and everywhere else ASP.NET Core may need to write to the temp directory.
Metadata
Metadata
Assignees
Labels
This issue impacts very few customersIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsThis issue / pr will introduce a breaking change, when resolved / merged.This issue represents an ask for new feature or an enhancement to an existing oneThis label is used by an internal tool