Skip to content
Browse files
example_yaml: netcat client closes connection after EOF
From the nc(1) man page:

     -N shutdown(2) the network socket after EOF on the input. Some servers
        require this to finish their work.

Ubuntu would appear to be one such server.
  • Loading branch information
kemitix committed Aug 23, 2018
1 parent d66451f commit 767a7160e1a032f56034fd19766f24a7e90617a2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -66,7 +66,7 @@ services:
name: sayHiNetcat
description: Echo a small hello string to the netcat entity
command: |
echo $message | nc $TARGET_HOSTNAME 4321
echo $message | nc -N $TARGET_HOSTNAME 4321
description: The string to pass to netcat

0 comments on commit 767a716

Please sign in to comment.