Repository navigation
Conversation
This was referenced Nov 11, 2026
Member
Author
Accepted limitationsThe clean review of the split found nothing in this pull request; the documentation fix of #842 is merged into it in caf086c. This remains from the reviews of the combined version:
Generated by Claude Code |
krlmlr
force-pushed
the
claude/httpvfs-interrupt
branch
from
November 13, 2026 15:42
caf086c to
1d35ed5
Compare
16 of 22 tasks
A transfer of the HTTP VFS ended only when it completed, failed or timed out, so an interrupt while R waited for a slow server took effect only after that. A progress callback now aborts the transfer when the user interrupts R. It checks for the interrupt through `R_ToplevelExec()`, so that no longjmp crosses SQLite or libcurl, and the aborted transfer fails the open with "unable to open database file" and a query with "disk I/O error". It uses `CURLOPT_XFERINFOFUNCTION`, or `CURLOPT_PROGRESSFUNCTION` with libcurl older than 7.32.0, and a handle on which it cannot be set is not used. An interrupted HEAD request skips the GET that would follow it, so one interrupt aborts the open, as `?sqliteHttpConfig` now says. A new test, modeled on the busy-handler test, starts a callr session that loads the package, has its `sqliteRemote()` wait for a server that never answers with a stall timeout of 60 seconds, interrupts it once the server has logged the HEAD, and expects "unable to open database file" well within the stall timeout. Both tests that run the package in a callr session, this one and the busy-handler test in `test-dbConnect.R`, start it with the new `local_rsqlite_session()`. It skips when the session would load another copy of the package than the one under test, as under `devtools::test()`, where the busy-handler test used to fail without an installed copy. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
krlmlr
force-pushed
the
claude/httpvfs-interrupt
branch
from
November 27, 2026 20:33
1d35ed5 to
319df15
Compare
This was referenced Nov 29, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An interrupt could not abort a transfer of the HTTP VFS: Ctrl-C took effect only once the stall timeout of #842 ended the transfer. A progress callback now aborts the transfer when the user interrupts R, through
R_ToplevelExec(), so that no longjmp crosses SQLite or libcurl; it usesCURLOPT_XFERINFOFUNCTION, orCURLOPT_PROGRESSFUNCTIONwith libcurl older than 7.32.0. An interrupted HEAD skips the GET, so one Ctrl-C aborts the open, which then fails with "unable to open database file", a query with "disk I/O error", as?sqliteHttpConfignow says.A new test, modeled on the busy-handler test, starts a callr session that loads the package, pins
RSQLITE_HTTP_STALL_TIMEOUTto 60 seconds, has the session'ssqliteRemote()wait for a server that never answers, interrupts it once the server has logged the HEAD, and expects "unable to open database file" well within the stall timeout; against the layer below, it times out. Both it and the busy-handler test now start their session withlocal_rsqlite_session(), which skips when the session would load a different copy of the package than the one under test, as underdevtools::test(); they run underR CMD check.The top of this stack has the same tree as fa0b234, the last head of the combined #832, merged with
main, apart from the corrected sentence in?sqliteHttpConfigfrom #842. At fa0b234, the full check matrix (macOS, Windows, arm64, R 4.2 to devel) was green on all 15 jobs, with the HTTP tests running on each (run).Part of the stack that splits the earlier combined #832 into scoped pull requests, as the maintainer asked there. This code was reviewed as part of #832, in three clean reviews of the combined version; a clean review of the split found nothing in this layer, and what remains is under Accepted limitations.
https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Generated by Claude Code