examples/unixfs-file-cid: io.Copy is never completed when read a single char-filled contents #430
Labels
kind/bug
A bug in existing code (including security flaws)
need/analysis
Needs further analysis before proceeding
P1
High: Likely tackled by core team if no one steps up
I modified unixfs-file-cid example program so that it could distribute files instead of strings. And, I try to distribute any files with a modified example program. When I try to do it with the same char-filled file (e.g. 0x00, 0x01 filled), the sample receiver program had never completed. In the same program, I can distribute random chars-filled files.
Expected Behavior
I can download and display the same char-filled file.
Current Behabior
io.Copy is never complete.
boxo/examples/unixfs-file-cid/main.go
Line 225 in b96767c
steps to reproduce
other terminal
I modified it.
https://github.com/ipfs/boxo/blob/main/examples/unixfs-file-cid/main.go#L145-L149
cid should be changed.
boxo/examples/unixfs-file-cid/main.go
Line 129 in b96767c
I made file this command (the file should be of some size)
$ dd if=/dev/zero of="file path" bs=1G count=1
Environment
The text was updated successfully, but these errors were encountered: