Public bug reported:
$ lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
$ apt-cache policy netcat-openbsd
netcat-openbsd:
Installed: 1.89-3ubuntu2
Candidate: 1.89-3ubuntu2
Version table:
*** 1.89-3ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
100 /var/lib/dpkg/status
Observed behavior (i.e. the problem):
netcat-openbsd will continue to listen on the specified port after a connection
is made and the -k option was not used.
Expected behavior:
Netcat should not continue to listen on a port after a connection has been made
unless the -k option is used.
Steps to reproduce:
$ nc -l 6969
Open another shell
$ netstat -t -l -n -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:6969 0.0.0.0:* LISTEN
20152/nc
$ nc localhost 6969
Hello
Netcat accepts the connection and "Hello" is echoed to the other
terminal
$ netstat -t -l -n -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:6969 0.0.0.0:* LISTEN
20152/nc
Netcat is still listening on port 6969 as if the -k option had been
specified even though it has already accepted a connection. Netcat
should not still be listening on port 6969 after accepting a connection
because the -k option was not specified.
-Rob
** Affects: netcat-openbsd (Ubuntu)
Importance: Undecided
Status: New
** Tags: nc netcat netcat-openbsd
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/885962
Title:
netcat-openbsd continues to listen on port after accepting connection
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netcat-openbsd/+bug/885962/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs