develooper Front page | perl.perl5.porters | Postings from September 2014

[perl #122657] t/io/socket.t failing on hurd: peer from recv() should be empty or the remote name

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
September 23, 2014 00:32
Subject:
[perl #122657] t/io/socket.t failing on hurd: peer from recv() should be empty or the remote name
Message ID:
rt-4.0.18-22891-1411432331-617.122657-15-0@perl.org
On Sat Aug 30 17:17:18 2014, dom wrote:
> As reported in <https://bugs.debian.org/cgi-
> bin/bugreport.cgi?bug=758718> this test (introduced as part of [perl
> #118843]) fails on Hurd. The comment from the Hurd porting team is:
> 
> "The test seems fishy to me: it is making sure that the name as
> returned
> by recv is *exactly* the same as what the server socket is bound to,
> which is 0.0.0.0:some_port but I would expect recv to return the
> actual
> IP address used in the socket, not 0.0.0.0.  It happens that Linux
> doesn't return anything at all so it goes fine there, but that's not a
> reason."

If it compared against getpeername(), would that pass?

As you say, comparing against the bind address is just plain wrong.

I don't have ready access to Hurd.

Tony


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=122657

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About