Repository navigation
Description
Match stock v0 hash-only, v1 part status, and v2 complete-source count. Cover standalone and all supported multipacket forms through both ordinary peer sessions and source probes.
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.
Exact-multiple bitmap alignment
Source comparison at Rust 99d9111, stock ac3d52e, and amule-org c5989ec4a confirms a reference edge case. Both references write the bitmap over GetED2KPartCount in their partial-file sender and read it over GetPartCount in ProcessExtendedInfo. On an exact multiple of eight data parts the writer emits an extra byte. The reference reader can then consume that byte as part of the v2 complete-source count, shifting the next multipacket opcode. Rust currently decodes the advertised ED2K-sized bitmap, and its eight-part fixture proves Rust round-trip framing only. Keep the native receiver edge case separate from the general v0/v1/v2 proof. Record both wire bytes and the reference clients' observed handling before deciding whether a compatibility accommodation is needed.
Source anchors: stock PartFile.cpp WritePartStatus and UploadClient.cpp ProcessExtendedInfo; aMule PartFile.cpp WritePartStatus and UploadClient.cpp ProcessExtendedInfo; Rust ed2k_tcp/codec/mod.rs and tests/protocol/codec.rs.
Native exact-eight baseline
On Rust e0f36b3, test both native publishers with a 77,824,000-byte fixture. The stock eMule probe emitted EXT2 with suffix 58 09 00 00 01 00 00 4F. The count was nine, with eight real parts in the first bitmap byte and virtual EOF in a second byte. Stock read only the real-parts byte, consumed part of the count at the wrong offset, and closed before returning a multipacket answer. The stock transfer subsequently timed out.
Frozen aMule 3.0.1 received the same suffix in legacy EXT, returned a multipacket answer and delivered the verified fixture. Current amule-org source also reads only eight real bits. Its multipacket switch skips the remaining unrecognized byte, which lets the probe complete while interpreting the v2 count as 1 instead of 0. Keep native aMule acceptance and count alignment as separate observations.
The baseline case receipts are reports/multi-client-p2p-matrix/20261126T073223Z-emulebb-main-release-17928/{e4,a7}.
Native verification of the corrected bitmap
PR #394 at c0bef3d sent suffix 58 09 00 00 00 00 4F to both clients. Count nine still identifies the file geometry. The first 00 is the bitmap for the eight real parts and the next two bytes are the complete-source count. 4F starts the next request. Stock eMule replied with EXT2 metadata on that connection. Frozen aMule replied with legacy multipacket metadata. Both clients then delivered all 77,824,000 bytes and Rust verified them.
The registered Windows eD2K suite passed 1,567 tests. It decodes the historical wide form and the compact receiver form. Standalone length determines the width. For nested requests, validate the full suffix and prefer compact when both layouts are structurally valid. The exact native receipts are reports/multi-client-p2p-matrix/20261126T074943Z-emulebb-main-release-15248/{e4,a7}, from Build Tests 29450d0d.
Exact-eight native transfer on the current review head
The registered exact-eight-part case passed with stock eMule and aMule. Both native publishers delivered the full 77,824,000-byte fixture, eD2K hash 74723920e6494283eced1c985a05398b, and Rust reported completed, delivered and byte-verified for both. The stock and aMule receipts are under reports/multi-client-p2p-matrix/20261126T082321Z-emulebb-main-release-15832/{e4,a7}. Both identify Rust 80790e0 and staged binary SHA-256 c7f20fc016f1a1394abd109307113841278d2fa2697e2668b3afc9969e43aabd.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Progress
Activity