Bug 760037

Summary: Netcat: timeout (-w) issue
Product: [Fedora] Fedora Reporter: ZMo <simoneroselli78>
Component: ncAssignee: Petr Šabata <psabata>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: psabata, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nc-1.103-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-21 15:37:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ZMo 2011-12-05 10:19:03 UTC
If you test an open port with "nc -w <n> <host> <openport>" the timeout works and after the amount of time specified with "-w" option, nc will terminate; doing the same on a no exposed port, timeout wont take effect and nc will stay appended forever. 

Version-Release number of selected component (if applicable):
nc-1.100-3

How reproducible:
100%

Steps to Reproduce:
1.Install nc 1.100-3 (yum install nc)
2. nc -w 2 <host> 65525



NOTE: It seems to be the same on Fc16 with nc-1.101-3.fc16.x86_64.rpm

Comment 1 Petr Šabata 2011-12-21 15:37:43 UTC
The '-w' option in pre-1.103 versions is not about connection timeout.  See nc(1) for details.

This is 'fixed' in 1.103+ releases, available in Rawhide.