Posted by Tobias Girstmair on Feb 07
Hi people and apologies for the unwieldy title!
Right now, Ncat keeps running when the remote end closes the connection.
Only when the client pushes more bytes into Ncat, it fails with "Broken
pipe." For example, this makes it impossible to wrap Ncat in a
while-loop to keep reconnecting.
Here is a simple PoC of the problem:
– run `ncat -l 1234` in one terminal and `nc ::1 1234` in another.
– ^C the listen-mode ncat.
– hit…
Print
Share
Comment
Cite
Upload
Translate
APA
() » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF. Retrieved from https://www.truth.cx/2021/02/07/patch-ncat-match-traditional-and-openbsd-netcat-behaviour-of-terminating-on-eof/.
MLA" » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF." - , https://www.truth.cx/2021/02/07/patch-ncat-match-traditional-and-openbsd-netcat-behaviour-of-terminating-on-eof/
HARVARD » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF., viewed ,
VANCOUVER - » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2021/02/07/patch-ncat-match-traditional-and-openbsd-netcat-behaviour-of-terminating-on-eof/
CHICAGO" » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF." - Accessed . https://www.truth.cx/2021/02/07/patch-ncat-match-traditional-and-openbsd-netcat-behaviour-of-terminating-on-eof/
IEEE" » [PATCH] Ncat: match traditional and OpenBSD netcat behaviour of terminating on EOF." [Online]. Available: https://www.truth.cx/2021/02/07/patch-ncat-match-traditional-and-openbsd-netcat-behaviour-of-terminating-on-eof/. [Accessed: ]