Skip to content

Close discarded separate-body responses - #502

Merged
woodruffw merged 4 commits into
masterfrom
ww/close-discarded-cache-responses
Nov 16, 2026
Merged

woodruffw merged 4 commits into
masterfrom
ww/close-discarded-cache-responses

Conversation

@woodruffw

@woodruffw woodruffw commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

This is atop #498, without the isinstance(...) checks that spooked me.

Closes #498. Closes #497.

notatallshaw and others added 4 commits November 8, 2026 10:57
Close cached responses before purging and on errors during freshness checks or 304 updates. Document the serializer ownership contract and cover the discard paths with regression tests.
Resolve response ownership before returning a hit or purging a miss. Record body files in the serializer used by the tests and assert which rejected entries remain in the cache.
Reuse the controller test fixtures and keep one real-file test for close-before-purge ordering. Retain coverage for deserialization misses, freshness and write errors, and ownership of cache hits.
@woodruffw
woodruffw merged commit 4bbdd22 into master Nov 16, 2026
18 checks passed
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.

Stale cache refresh fails on Windows with PyPy

2 participants