develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #133936] IO::Socket::send ignores peer on connectedconnection-less socket

Thread Next
From:
Tony Cook via RT
Date:
June 19, 2019 00:58
Subject:
[perl #133936] IO::Socket::send ignores peer on connectedconnection-less socket
Message ID:
rt-4.0.24-28129-1560905889-1798.133936-15-0@perl.org
On Mon, 17 Jun 2019 18:33:41 -0700, tonyc wrote:
> On Sun, 16 Jun 2019 17:20:18 -0700, tonyc wrote:
> > On Tue, 04 Jun 2019 23:09:06 -0700, tonyc wrote:
> > > On Sun, 17 Mar 2019 22:06:04 -0700, tonyc wrote:
> > > > On Fri, 15 Mar 2019 11:52:31 -0700, chemobejk@gmail.com wrote:
> > > > > I stumbled over the IO::Socket::send() implementation while
> > > > > investigating
> > > > > SO question #55161627
> > > > > (https://stackoverflow.com/questions/55161627/
> > > > > "Why
> > > > > does sendto() via Perl Socket->send() ignore the peer
> > > > > address?"):
> > > > >
> > > >
> > > > Does the attached help for you?
> > >
> > > Stefan responded by private email due to the email <-> RT issues.
> > >
> > > Updated patch attached.
> >
> > Applied as f1000aa2d58fbed2741dbb2887b668f872ef0cb8,
> > 229dff1ea726e744f983d06b20f0a1803a7b6e9f and
> > 1d9630e7857d6fbae6fddd261fbb80c9c9a8cfd6.
> >
> > Tony
> 
> Due to #134201 I've re-opened this, my patch was wrong.
> 
> UDP sockets can be connected, and on some systems, calling send() with
> a TO address will fail.
> 
> UDP sockets can even be connected to a new address while connected or
> disconnected by trying to connect to a AF_UNSPEC address.
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html
> 
> I'm going to re-work this.

Done in bc26d2e6b287cc6693f41e1a2d48b0dd77d2e427.

Tony

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

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