Repository navigation
web: a download still arriving is not cut off at 30 s (board #143) - #382
Merged
Merged
Conversation
The page's fetch had one 30 s limit, body included, so a large file still arriving ran out of it: the hard eval's 17.6 MB IEA PDF, on a loaded machine. It now has 30 s to the response's headers, then the body for as long as bytes keep arriving, failing when none arrive for 20 s, the whole within the call's 150 s deadline. Images (20 s each) and Defuddle's site extractors (15 s) keep their totals. Each limit says what ended it and how much had arrived: `no response within 30 s`, `stalled: no data for 20 s after <received> [of <length>]`, `timed out after <s> s with <received> [of <length>] received`. pdftotext cut short by the time left says so, and an https-first download that spent the deadline stands instead of an http fallback with no time. The same PDF served locally at 400 KB/s (44 s) fails `timed out after 30 s` on 0.3.0 and is saved with its text now. web 0.3.1. Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Board #143: the
webplugin's clipper gave a page's whole response 30 s, body included, so a large file still downloading was cut off. In the hard eval's final round this hit the IEA's 17.6 MB World Energy Outlook PDF on a loaded machine. It was the round's only tool-caused error.What changes
The page's fetch (the main fetch and its 406 and markdown-stub retries) now has two limits in place of the 30 s total, both inside the call's 150 s deadline:
no response within 30 sstalled: no data for 20 s after 28 bytes of 1.0 MBtimed out after 150 s with 12.3 of 17.6 MB receivedtoo large: over 50 MBno text extracted: pdftotext did not finish within <s> sinstead ofpdftotext failed (Command failed: …). A long download can leave it only seconds.timed out after 0 s.Verified
{"ok":false,…,"error":"timed out after 30 s"}after 30 s;cmp), with its pdftotext text (156,557 words), in 46 s.node web/bin/clip.mjs fetch <IEA URL>returned ok (17,635,742 bytes, with text) in 20 s at load averages of 24 to 32.http.test.tscovers each limit at small values: a body running past the headers limit, headers that never come, a body that stops, a body still arriving when the whole time runs out, and no headers limit given.clip.test.tsruns at the real limits: a page arriving steadily for 33 s is fetched, while one that stops fails at 20 s with the stall message. It also covers pdftotext cut short, and https-first when no time is left.bash web/tests/run.shpassed on this Mac with Chromium: 152 clipper tests (none skipped), the bundle check, 55 mod tests and 91 eval-script tests.ci-gatewas GREEN on b3a736d: shell-lint, repo-checks, mods-types and web (https://github.com/SSFSKIM/doperpowers/actions/runs/40246237903).Not verified
Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)