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

Dispose disposable HttpContext #359

Closed
@benaadams

Description

@benaadams

HttpContext is IDisposable so should be disposed at the end of the request.

Would suggest Func<IFeatureCollection, Task> application change to Func<IFeatureCollection, Task<IDisposable>> application in IServerFactory.Start

The Server Factory should then return the HttpContext from the closure: https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNet.Hosting/Internal/HostingEngine.cs#L88 to allow it to be disposed at the end of the request.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions