Skip to content

Client connection is closed after each request #29540

Answered by Tratcher
arisewanggithub asked this question in Q&A
Discussion options

You must be logged in to vote

ASP.NET Core uses keep-alive connections by default. The app or gateway would have to be opting out of keep-alives by one of these mechanisms:

  • The gateway using HTTP/1.0 instead of 1.1 or 2.0
  • The gateway sending Connection: close
  • The app sending Connection: close on responses
  • The client sending large request bodies and the app not consuming them. The server will try to drain them but only to a point.
  • Short lived WebSockets

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@arisewanggithub
Comment options

@Tratcher
Comment options

@arisewanggithub
Comment options

@Tratcher
Comment options

@arisewanggithub
Comment options

Answer selected by arisewanggithub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants