Skip to content

upstream: finish and cache requests even when the client cancels - #4

Open
charludo wants to merge 1 commit into
mainfrom
ch/fix-context-cancelable-by-client
Open

upstream: finish and cache requests even when the client cancels#4
charludo wants to merge 1 commit into
mainfrom
ch/fix-context-cancelable-by-client

Conversation

@charludo

Copy link
Copy Markdown
Collaborator

Previously, the client canceling (in our concrete case, due to an intentionally short timeout), the context cancellation would also cancel the proxy's upstream request, thus also not caching the response.

With this change, we now finish the upstream request even after a client cancels its request, so the next client request can be answered from cache.

@charludo
charludo requested review from burgerdev and sespiros August 27, 2026 08:54
@charludo
charludo force-pushed the ch/fix-context-cancelable-by-client branch from 1b14bb0 to 19a00db Compare August 27, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant