wangyu- / UDPspeeder

A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)
MIT License
4.69k stars 826 forks source link

file transfer failure with netcat #166

Open maksimpiriyev opened 5 years ago

maksimpiriyev commented 5 years ago

I am using below commands to test the file transfer with netcat on the same machine but only first half of the file content is visible

./speeder -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -f8:4 ./speeder -c -l0.0.0.0:3333 -r127.0.0.1:4096 -f8:4 nc -u -l 7777 > newfile.cpp cat file.cpp | nc -u 127.0.0.1 7777

For English speaking user: https://github.com/wangyu-/UDPspeeder/wiki/Issue-Guide

中文用户请看: https://github.com/wangyu-/UDPspeeder/wiki/发Issue前请看 (否则Issue可能被忽略,或被直接关掉)

wangyu- commented 5 years ago

./speeder -s -l0.0.0.0:4096 -r 127.0.0.1:7777 -f8:4 ./speeder -c -l0.0.0.0:3333 -r127.0.0.1:4096 -f8:4 nc -u -l 7777 > newfile.cpp cat file.cpp | nc -u 127.0.0.1 7777

You didnt even let the traffic go through UDPspeeder.

nc -u -l 7777 > newfile.cpp cat file.cpp | nc -u 127.0.0.1 7777

netcat UDP mode is not reliable. If you run those command several times, sometimes the file will be partially transfered, its as expect.