[prev in list] [next in list] [prev in thread] [next in thread]
List: hurd-bug
Subject: Re: pflocal socket bug
From: Samuel Thibault <samuel.thibault () gnu ! org>
Date: 2015-09-12 12:13:52
Message-ID: 20150912121352.GX3266 () var ! home
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic