Repository navigation
feat: Stream NAR downloads to clients while still downloading - #272
Merged
Merged
Conversation
This was referenced Aug 24, 2025
Merged
Owner
Author
kalbasit
marked this pull request as ready for review
August 24, 2025 22:28
kalbasit
force-pushed
the
clients_access_partial_download
branch
from
August 24, 2025 22:46
fadbbcd to
a886b1b
Compare
kalbasit
force-pushed
the
remove_temp_file_outside_download_fn
branch
2 times, most recently
from
August 24, 2025 22:53
89cd2a9 to
03646b4
Compare
kalbasit
force-pushed
the
clients_access_partial_download
branch
2 times, most recently
from
August 24, 2025 22:59
ca38990 to
41f69c4
Compare
kalbasit
force-pushed
the
remove_temp_file_outside_download_fn
branch
3 times, most recently
from
August 24, 2025 23:09
d4d29fc to
8e17203
Compare
kalbasit
force-pushed
the
clients_access_partial_download
branch
from
August 24, 2025 23:10
41f69c4 to
c173ae8
Compare
kalbasit
force-pushed
the
remove_temp_file_outside_download_fn
branch
from
August 24, 2025 23:10
8e17203 to
1823c8d
Compare
kalbasit
force-pushed
the
clients_access_partial_download
branch
from
August 24, 2025 23:10
c173ae8 to
f5e94bf
Compare
kalbasit
changed the base branch from
remove_temp_file_outside_download_fn
to
graphite-base/272
August 24, 2025 23:18
kalbasit
force-pushed
the
graphite-base/272
branch
from
August 24, 2025 23:19
1823c8d to
e2be50d
Compare
kalbasit
force-pushed
the
clients_access_partial_download
branch
from
August 24, 2025 23:19
f5e94bf to
6d20783
Compare
kalbasit
force-pushed
the
clients_access_partial_download
branch
from
August 24, 2025 23:19
6d20783 to
6446e61
Compare
Owner
Author
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.

Streaming NAR Downloads
This PR implements streaming NAR downloads, allowing clients to start receiving data as soon as it becomes available rather than waiting for the entire download to complete.
Key changes:
downloadStatewith mutex, condition variable, and progress trackingThe implementation uses a producer-consumer pattern where the download process writes chunks to a file while simultaneously streaming those chunks to connected clients. This improves performance by eliminating the need to wait for complete downloads before serving content.
fixes #20