Skip to content

Explicitly drop request resource during sandbox reuse.#26

Merged
posborne merged 1 commit into
mainfrom
expliclt-request-drop
Dec 17, 2025
Merged

Explicitly drop request resource during sandbox reuse.#26
posborne merged 1 commit into
mainfrom
expliclt-request-drop

Conversation

@erikrose
Copy link
Copy Markdown
Member

Replace hacky use of arg-consuming send() with a proper invocation of WIT's drop(), which is hidden behind context managers on resources. Fixes #18.

Also drop the resource after subsequent requests during sandbox reuse, though it seemed to work without before.

@erikrose erikrose force-pushed the expliclt-request-drop branch from 82326e8 to fb61fdb Compare December 17, 2025 19:58
Replace hacky use of arg-consuming `send()` with a proper invocation of WIT's `drop()`, which is hidden behind context managers on resources. Fixes #18.

Also drop the resource after subsequent requests during sandbox reuse, though it seemed to work without before.
@posborne
Copy link
Copy Markdown
Member

Merging to rebase #25 on these changes.

@posborne posborne merged commit 98dee3d into main Dec 17, 2025
3 checks passed
@posborne posborne deleted the expliclt-request-drop branch December 17, 2025 21:56
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.

Provide a way to drop resources in Python Land

2 participants