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. Tony --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=133936Thread Previous | Thread Next