Skip to content
Discussion options

You must be logged in to vote

It'll depend on the type of request, the HTTP version, and when during the request the client disconnected.

If the client disconnects while YARP is sending out a request to the backend, YARP will "cancel" that outgoing request.
What that means in practice is that we'll close the TCP connection when using HTTP/1.1, or send a reset frame on HTTP/2.
If you're using Kestrel on the backend, both of these would be surfaced to you as HttpContext.RequestAborted getting signaled.

A small exception to that is that if the client disconnects while you're copying back the response, YARP will attempt to keep reading for a short period in hopes that the response is short and that we'll be able to reuse …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MihaZupan
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