Bug 199503 - nc not honoring '-w' timeout values
Summary: nc not honoring '-w' timeout values
Keywords:
Status: CLOSED DUPLICATE of bug 182736
Alias: None
Product: Fedora
Classification: Fedora
Component: nc
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-19 23:12 UTC by Stuart J. Browne
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-07-20 07:06:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stuart J. Browne 2006-07-19 23:12:00 UTC
Description of problem:

'nc' doesn't honor the '-w <val>' argument for timing out connection failures

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

1.82-fc4.1, 1.84-3.2 (FC5 source recompiled onto FC4)

How reproducible:

Every time.

Steps to Reproduce:

Create a DROP firewall on a test machine for a port.

1. nc -w 2 <test machine> <dropped port>
 
Actual results:

Command hangs until TCP connect timeout

Expected results:

Previous versions of nc (in particular 1.10), and documentation and help state 
that 'Timeout for connects and final net reads'.  It is not exiting or timing 
out after the defined '-w' period of seconds if the connection attempt hangs 
(as when a machine is under load, or trying to connect to a dropped port).

Additional info:

Comment 1 Radek Vokál 2006-07-20 07:06:09 UTC
Already fixed in rawhide 1.84-4

*** This bug has been marked as a duplicate of 182736 ***


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