Skip to content

About every third https request to my api takes up to 60 seconds to start executing post method #7819

@josephldooley

Description

@josephldooley

Describe the bug

I send a post request to my api using postman. The first few requests get responses in about 1- 2 seconds, after that the next request takes up to 60 seconds before responding. I placed a break point at the start of my method with the HttpPost attribute. The breakpoint is not hit for those 60 seconds so this leads me to believe the timing issues is bettween sending the https request and before the relate method executes.

To Reproduce

Steps to reproduce the behavior:

  1. Using this version of ASP.NET Core '1.1'
  2. Run this code '
    [HttpPost]
    public JsonResult Post(string key)
    {
    return Json(-1);
    }'
  3. With these arguments 'https://win2k8JD/myservice/api?key=123'
  4. Im using nginx as a reverse proxy configured for https, and I'm also using Kestrel

Expected behavior

fast responses from my asp.net core api (not 60 seconds of wait before my code starts executing

Screenshots

If applicable, add screenshots to help explain your problem.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions