[PR #535] [MERGED] feat: implement multipart ranges #637

Closed
opened 2026-04-08 16:53:46 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/535
Author: @45gfg9
Created: 1/30/2025
Status: Merged
Merged: 2/1/2025
Merged by: @sigoden

Base: mainHead: main


📝 Commits (2)

  • 27577da feat: implement multipart ranges
  • 781c311 test: multipart ranges

📊 Changes

3 files changed (+162 additions, -51 deletions)

View changed files

📝 src/server.rs (+57 -23)
📝 src/utils.rs (+39 -27)
📝 tests/range.rs (+66 -1)

📄 Description

This is an attempt to implement #292. I wasn't able to give a use case then, I would now say that some esoteric client implementation would be able to utilize this feature, in fact some are still doing this, for example Electron updater. Some multithreaded downloader may also use multipart ranges to reduce the fragmented range requests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/535 **Author:** [@45gfg9](https://github.com/45gfg9) **Created:** 1/30/2025 **Status:** ✅ Merged **Merged:** 2/1/2025 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`27577da`](https://github.com/sigoden/dufs/commit/27577da0615cf674692939ada5f8aa723cc3012d) feat: implement multipart ranges - [`781c311`](https://github.com/sigoden/dufs/commit/781c3119ab5a92d8e8bd1c765c976a39ee8a7592) test: multipart ranges ### 📊 Changes **3 files changed** (+162 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `src/server.rs` (+57 -23) 📝 `src/utils.rs` (+39 -27) 📝 `tests/range.rs` (+66 -1) </details> ### 📄 Description This is an attempt to implement #292. I wasn't able to give a use case then, I would now say that some esoteric client implementation would be able to utilize this feature, in fact some are still doing this, for example Electron updater. Some multithreaded downloader may also use multipart ranges to reduce the fragmented range requests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:46 +03:00
zhus closed this issue 2026-04-08 16:53:46 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#637