Package: netcat6 Version: 1.0-8 If sending data to a remote server that does not read data but only sends some and then closes the connection, nc6 (unlike nc.traditional and nc.openbsd) most of the time discards data is already has read:
socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 3 setsockopt(3, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_INET6, sin6_port=htons(9765), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress) select(4, NULL, [3], NULL, NULL) = 1 (out [3]) getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 dup(0) = 4 dup(1) = 5 select(5, [3 4], [], NULL, NULL) = 1 (in [4]) readv(4, [{"\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192}], 1) = 1 select(5, [3 4], [3], NULL, NULL) = 1 (out [3]) writev(3, [{"\n", 1}], 1) = 1 select(5, [3 4], [], NULL, NULL) = 1 (in [3]) readv(3, [{"test\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192}], 1) = 5 select(6, [3 4], [5], NULL, NULL) = 2 (in [3], out [5]) readv(3, 0x7fff4d332d20, 1) = -1 ECONNRESET (Connection reset by peer) close(4) = 0 close(5) = 0 close(3) = 0 exit_group(1) = ? As you can see, it read 5 bytes, but never outputs them. It should either output them (like nc.traditional and nc.openbsd) or at least give some feedback that it may discard stuff (one needs nc6 -vv to get anything but a silent end with only the exit code giving some hint). Bernhard R. Link -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org