Repository navigation
Description
Return a sized all-zero standalone availability bitmap for known incomplete multipart files. Preserve the separate payload-serving gate. Match the stock filename and status sequence for unknown files.
Compare behavior with stock eMule ac3d52e and amule-org aMule c5989ec4a. Use #164 for deterministic protocol evidence and #31 for same-revision interoperability.
Roadmap placement is Beta 3 Client gate.
Incomplete filename admission by reference
The current Rust status handler answers for a known multipart download before any data part is verified. Keep payload authorization separate. Before c2906fb, the filename handler used the stricter verified-part serving lookup. Stock's filename fallback instead tests GetCompletedSize >= PARTSIZE, and PartFile.cpp calculates that value as file size minus total gaps. This can include a part's worth of received bytes scattered across several parts. amule-org aMule's fallback tests total file size > PARTSIZE, so it can answer even earlier. Add an explicit scattered-progress fixture to the remaining native metadata proof. Record the reference behavior and keep any filename-only accommodation separate from verified range serving.
Source anchors: stock ListenSocket.cpp OP_REQUESTFILENAME and PartFile.cpp UpdateCompletedInfos; aMule ClientTCPSocket.cpp OP_REQUESTFILENAME; Rust ed2k_tcp/listener/session/shared_file.rs and ed2k_transfer/catalog.rs.
Reproducible scattered-progress boundary
PR #394 at c2906fb tests two incomplete parts. It writes sparse full blocks in the first part and an exact prefix in the second, bringing the received total to 9,727,999 bytes. It then appends one byte so the total reaches 9,728,000. The TCP fixture observes filename silence and file-not-found for all three multipacket forms below the threshold. At the threshold it receives the filename and zero availability in all multipacket forms. It checks zero standalone availability and upload refusal. Both parts remain unverified.
The registered Windows package suite passed 1,566 tests with this change. The fixture exercises the Rust TCP listener. Native stock and aMule data-point capture remains under #31.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Progress
Activity