Re: async connect problem

From: Brian Buchanan <bwb_at_holo.org>
Date: Thu, 5 May 2005 19:39:02 -0700 (PDT)
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
Received on Fri May 06 2005 - 00:39:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:34 UTC