Bug 760037 - Netcat: timeout (-w) issue
Summary: Netcat: timeout (-w) issue
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nc
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Šabata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-05 10:19 UTC by ZMo
Modified: 2011-12-21 15:37 UTC (History)
2 users (show)

Fixed In Version: nc-1.103-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-21 15:37:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.