Skip to content

feature: add timer context support for get_client_body_reader.#336

Merged
sriemer merged 1 commit into
ledgetech:masterfrom
zhuizhuhaomeng:timer-support
Jun 16, 2026
Merged

feature: add timer context support for get_client_body_reader.#336
sriemer merged 1 commit into
ledgetech:masterfrom
zhuizhuhaomeng:timer-support

Conversation

@zhuizhuhaomeng

@zhuizhuhaomeng zhuizhuhaomeng commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

When downloading a big file in a timer, it is unwanted to hold the
whole file in the memory. So write the file to disk piece by piece.

@sriemer sriemer self-assigned this Jun 8, 2026
@sriemer

sriemer commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@zhuizhuhaomeng Would you mind adding a proper description why this is needed, develop a test for this, and to rebase this on top of latest master branch so that tests are run again? TIA

@sriemer sriemer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide more context here for which use cases this feature is required.
Consider reading body value in 1 byte chunks in the test to demo reading chunks of data. TIA

So is the use case here something like reading big files or video chunks?

Comment thread t/10-clientbodyreader.t Outdated
When downloading a big file in the timer, you don't want to hold the
whole file in the memory, write the file into the disk piece by piece.
@zhuizhuhaomeng

Copy link
Copy Markdown
Contributor Author

When downloading a big file in the timer, you don't want to hold the
whole file in the memory, write the file into the disk piece by piece.

@sriemer sriemer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Please put reformatting in another commit next time. TIA.

@sriemer sriemer merged commit cd41479 into ledgetech:master Jun 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants