Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Allow DefaultHttpContext to be pooled [Design] #404

Closed
wants to merge 2 commits into from

Conversation

benaadams
Copy link
Contributor

Half of #402 needs change to Hosting also

@dnfclas
Copy link

dnfclas commented Sep 15, 2015

Hi @benaadams, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@@ -168,8 +185,26 @@ public override void Abort()

public override void Dispose()
{
// REVIEW: is this necessary? is the environment "owned" by the context?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -109,5 +114,13 @@ public override IEnumerable<AuthenticationDescription> GetAuthenticationSchemes(
throw new InvalidOperationException($"The following authentication scheme was not accepted: {authenticationScheme}");
}
}

public void Dispose()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reset

@benaadams
Copy link
Contributor Author

See #402 (comment) for details on server run improvements (61.5k rps -> 1.49M rps)

@@ -116,5 +121,14 @@ public override void Redirect(string location, bool permanent)

Headers[HeaderNames.Location] = location;
}

public void Dispose()
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reset

@benaadams benaadams changed the title Allow DefaultHttpContext to be pooled Allow DefaultHttpContext to be pooled [Design] Sep 15, 2015
@davidfowl
Copy link
Member

Closing this as discussed with @benaadams

@davidfowl davidfowl closed this Sep 19, 2015
@benaadams benaadams deleted the reduce-alloc-support branch May 10, 2016 11:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants