Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 09:32:56 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        BelletJr@aol.com
Cc:        current@freebsd.org
Subject:   Re: connect(2) behavior with unreacheable hosts
Message-ID:  <20030412083256.GA28378@walton.maths.tcd.ie>
In-Reply-To: <109.225ca595.2bc723f2@aol.com>
References:  <109.225ca595.2bc723f2@aol.com>

index | next in thread | previous in thread | raw e-mail

On Thu, Apr 10, 2003 at 03:45:54PM -0400, BelletJr@aol.com wrote:
> Why does not connect(2) return any error when trying to connect to a host 
> unreachable because of an infinite loop in the routes? No time-out occurs and 
> the value 0 is returned by connect(2).
> My test was done with TCP/IPv4.

I've tried connecting to a host which is unreachable in both 4.X
and 5.X and in both cases connect returns an error with "Operation
timed out". I wonder if you could post your source code and/or a
tcpdump of what's actually sent and recieved over the network while
this is happening?

	David.


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030412083256.GA28378>