Skip to content

[http] reduce size of file.root request#22346

Merged
linev merged 4 commits into
root-project:masterfrom
linev:http_get_file
May 21, 2026
Merged

[http] reduce size of file.root request#22346
linev merged 4 commits into
root-project:masterfrom
linev:http_get_file

Conversation

@linev

@linev linev commented May 20, 2026

Copy link
Copy Markdown
Member

Any object from THttpServer can be requested with file.root request
Internally TMemFile used - which has very large default buffer size.
Therefore default file size is 2MB - which is too much.
Reduce this to 1K, adjust already provided testing

Also add text output to EXPECT_EQ macros - to get idea that value is compared.
Simplify debugging afterwards

@linev linev requested a review from bellenot May 20, 2026 06:42
@linev linev self-assigned this May 20, 2026
@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 15h 49m 2s ⏱️
 3 857 tests  3 855 ✅ 0 💤 2 ❌
77 042 runs  77 040 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 41f622e.

♻️ This comment has been updated with latest results.

linev added 4 commits May 20, 2026 11:22
Internally TMemFile is used - which has too large default block size. Set such default block size to 1024 bytes
All gtest macros like EXPECT_EQ can be supplied with output to explain that is checked. One than see such output in case of problem in log.
@linev linev force-pushed the http_get_file branch 3 times, most recently from 9dba1e7 to 41f622e Compare May 20, 2026 10:30
@linev linev merged commit 6624e86 into root-project:master May 21, 2026
29 of 33 checks passed
@linev linev deleted the http_get_file branch May 21, 2026 05:43
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