You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past, we've received some reports of issues that were caused by using netcat implementations incompatible with fiche (e.g. #14, #45). It would be nice to give users a list of those that are recommended.
Please feel free to add your recommendations in the comments.
I tried to test some netcat implementation on my server and nc on macOS, here is the result. (may does not make much sense to compare accurate result, but check which cost less than 1 second and which cost more than 5 seconds is enough)
$ alias tb="uname | nc termbin.com 9999"
$ time tb
slow as for reach the timeout to finish, since the default timeout is 5 seconds which set on server, it cost more than 5 seconds to finish. fast as for expected speed usually finish in 1 second.
As someone mentioned that in 2015 the GNU netcat seems send the end of stream by default, it was fast at that time. I guess it was changed since then, GNU netcat does not similar option of BSD version's -N, that's why it's slow.
implementation
slow
fast
nc (GNU netcat) (0.7.1)
default
libressl-netcat (3.1.4)
default
-N
openbsd-netcat (1.217)
default
-N
ncat (nmap) (7.91)
--no-shutdown
default
nc on macOS
default
both of this pure bash/zsh way are slow, I didn't figure out a way to solve this.
In the past, we've received some reports of issues that were caused by using netcat implementations incompatible with fiche (e.g. #14, #45). It would be nice to give users a list of those that are recommended.
Please feel free to add your recommendations in the comments.
Supported netcat implementations
The text was updated successfully, but these errors were encountered: