Hide Forgot
Description of problem: nc doesn't appear to time out properly with the -w option Version-Release number of selected component (if applicable): nc-1.100-2.fc15.x86_64 How reproducible: Steps to Reproduce: 1. nc -w 1 <hostname> <port> Actual results: $ nc -w 1 www.google.com 1800 <times out after a few minutes> Expected results: $ nc -w 1 www.google.com 1800 <times out after 1 second> Additional info: May be related to #199503 #182736 #132973
I dropped our custom patch for this feature with 1.100 update since it wasn't in line with upstream (see your nc(1) manpage for explanation). However, upstream introduced support for connect timeout in 1.103. This version is available in rawhide and will be part of Fedora 17. I don't intend to change netcat's behaviour in stable releases.