dennis-tra / pcp

📦 Command line peer-to-peer data transfer tool based on libp2p.
Apache License 2.0
1.07k stars 57 forks source link

Very low transfer speed #18

Open megapro17 opened 2 years ago

megapro17 commented 2 years ago

We both have a stable 100 Mbps internet but pcp sends it with about 2.3 MB/s. Does it use multiple threads? I'm using v0.4.0-rc1 Windows.

dennis-tra commented 2 years ago

Hi @megapro17, it could very well be the case that your connection got relayed by an intermediate peer. This happens if pcp was not able to hole punch a connection through either of your routers. (this is just a guess)

If that's the case, there a many improvements on the way that address this problem:

https://github.com/libp2p/go-libp2p/issues/1039

Indeed, I just learned that it got merged two months ago. pcp would definitely benefit from that improvement.

I'm also thinking to indicate in the command line if the connection got relayed.

megapro17 commented 2 years ago

Thanks for looking. I guess it was because my friend had a shared ip from isp, mine is dedicated. I tried today with both dedicated and it hit 10 MB/s speed, but not for a long time, dropped to about 5 MB/s. I didn't realised it is so difficult to send files, torrents are just working with any connection with maximum speed.

megapro17 commented 2 years ago

can i have a nightly build to test new branch??