unpack_sockaddr error on UNIX domain sockets since Socket-2.011

Marc Lehmann schmorp at schmorp.de
Fri Feb 21 17:22:20 CET 2014


On Thu, Feb 20, 2014 at 11:26:53AM +0100, Maxime Soulé <btik-cpan at scoubidou.com> wrote:
> Socket-2.011 corrected the long standing bug concerning short
> sockaddr_un structures.

By introducing another bug that breaks existing software - but then, the
Socket maintainer has a history of deliberately breaking AnyEvent.

> But as this bug is corrected in Socket, Socket::unpack_sockaddr_un
> now complains because the sockaddr_un structure has not the size
> specified inside it, in AnyEvent::Socket::unpack_sockaddr:

Which would be entirely valid - it would be great if this new bug could be
reported by somebody not openly affiliated with AnyEvent though, maybe it
can get fixed?

> The attached patch avoid the problem by "patching" such structures
> only when $Socket::VERSION < 2.011...

Thanks a lot for tracking this down, next version of AnyEvent will have
the workaround. In fact, I slightly changed the patch - is it possible
that you verify that the version in CVS works?

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list