adobe / adobe/node-httptransfer

Support for Interruptible Downloads

Đang mở
#166 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
17
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi team,

We’re requesting support for interruptible downloads in the node-httptransfer module.

This enhancement is needed for the AEM Desktop App, which relies on this library for managing large file downloads from AEM. Currently, if a user cancels a download or exits the application mid-transfer, there’s no clean way to interrupt and release resources tied to the in-progress download request. This can result in wasted bandwidth and lingering connections.

Desired Behavior

- Provide a mechanism (e.g., a cancellation token or similar API) to allow downloads to be programmatically interrupted.
- Ensure that aborting a download cleans up any associated streams, temp files, and connections gracefully.
- Ideally, support should be compatible with existing APIs to minimize integration impact.

Use Case
The AEM Desktop App often downloads large binaries, and it’s important for user experience and system efficiency that users can pause, cancel, or exit downloads mid-way without negative side effects.

We’re happy to collaborate on a proposed solution or contribute if needed. Let us know your thoughts!

Thanks,
Harsh Chiki
(on behalf of the AEM Desktop App team)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc xem xét API tải xuống của node-httptransfer và cách các yêu cầu đang thực hiện, stream, tệp tạm thời và kết nối được quản lý. Xác định một cơ chế hủy tương thích với các API hiện có, sau đó xác minh rằng việc hủy hoặc thoát giữa chừng khi đang truyền sẽ giải phóng các tài nguyên đó mà không ảnh hưởng đến các lượt tải xuống đã hoàn tất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, nodejs
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.