async connect problem
Brian Buchanan
bwb at holo.org
Thu May 5 19:39:03 PDT 2005
On Thu, 5 May 2005, J.R. Oldroyd wrote:
> Isn't our behaviour wrong...
>
> On 6-current, the program below prints:
> connect: Connection refused
>
> Shouldn't it print:
> connect: Operation now in progress
No, that's the correct behavior. The system was able to satisfy your
request without blocking because you were attempting a connection to the
loopback, so connect() returned immediately with errno == ECONNREFUSED.
- Brian
More information about the freebsd-current
mailing list