Skip to content

block: Wait for disk activity before starting background reads - #89

Open
dagelf wants to merge 1 commit into
pithings:mainfrom
dagelf:http-disk-idle
Open

dagelf wants to merge 1 commit into
pithings:mainfrom
dagelf:http-disk-idle

Conversation

@dagelf

@dagelf dagelf commented Nov 29, 2026

Copy link
Copy Markdown

An HTTP disk with background fetching enabled woke every 250 ms while waiting for its first read. Use the first read and completion of pending chunks to drive the existing one-second quiet period.

A controlled clock checks that the disk schedules no timer before the first read settles and that a later cached read extends the idle deadline.

Verification

TypeScript and the full block test suite passed on this branch.

@pi0 pi0 closed this Nov 29, 2026
@pi0 pi0 reopened this Nov 29, 2026
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.

2 participants