bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pflocal socket bug


From: Samuel Thibault
Subject: Re: pflocal socket bug
Date: Sat, 12 Sep 2015 14:13:52 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Svante Signell, le Fri 11 Sep 2015 19:50:21 +0200, a écrit :
> Well, the Linux manpage for connect says:

The linux manpage is not supposed to be relevant.

> While POSIX says:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html
> [EADDRNOTAVAIL]
>         The specified address is not available from the local machine.
> [ECONNREFUSED]
>         The target address was not listening for connections or refused
>         the connection request.
> 
> To me the best explanation is "No-one listening on the remote address."

Take care that we may also be in the connection-less case, which does
not have the notion of listening and connection.

> and "The target address was not listening for connections or refused the
> connection request." Additionally it is related to connect() by the
> error name itself.

In the connection-less case, connect is not meant to connect, but just
to specify the default destination address only.

> The Hurd patch is very simple:

If you didn't mangle it by pasting it twice :)

> Why not align to other OSes?

"aligning" is not necessarily the right solution.  But here it should be
fine, yes.  I have fixed both connect() and sendto().

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]