inhies / cjdcmd

cjdcmd is a command line tool for cjdns
Other
43 stars 16 forks source link

Ping command improvements #11

Closed Seemone closed 11 years ago

Seemone commented 11 years ago

Normal ping command sends one packet each second (by default). cjdcmd ping command sends a new packet as soon as it receives a response. This is not effective for 2 reasons: it on broadband links it sends a lot of packets, much faster than a human can notice their latency and is more vulnerable to lost packets, not giving a meaningful picture of packet loss en route towards that target.

Proposed solution: send one packet each second, regardless of when its response comes in and print a summary a-la normal ping after ctrl-c is issued. Optional parameter to increase delay.

inhies commented 11 years ago

Great idea, this will get implemented soon. I also have more graceful error handling in the even of a packet error planned for the same time. Thank you.

Seemone commented 11 years ago

Also, it shouldn't quit if the target can't be reached anymore.

inhies commented 11 years ago

Agreed, that's part of the 'better error handling' :)