Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HybridConnectionListener.RequestHandler response Stream should support NoDelay #81

Open
dlstucki opened this issue Aug 10, 2018 · 0 comments

Comments

@dlstucki
Copy link
Contributor

dlstucki commented Aug 10, 2018

Actual Behavior

HybridConnectionListener.RequestHandler Response.OutputStream currently waits a period of time (2 seconds at the moment) to see if all the writes finish and the total size is <= 64KB.

Expected Behavior

If the code wants to force a rendezvous and flush written bytes there needs to be a way to opt for this. Suggestion is to allow user to set a new field, OutputStream.NoDelay.

        listener.RequestHandler = (context) =>
        {
>>>         context.Response.OutputStream.NoDelay = true;         <<<
            context.Response.StatusCode = HttpStatusCode.OK;
            
            // Stream the body here...
        }; 

Versions

  • OS platform and version: Windows 10
  • .NET Version: .NET 4.6
  • NuGet package version or commit ID: 2.0.0-preview1-20180523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant