Socket::unpack_sockaddr_in error and fixes

Marc Lehmann schmorp at schmorp.de
Fri Oct 24 14:20:48 CEST 2014


On Wed, Oct 22, 2014 at 10:56:15AM +0800, Michael Fung <mike at 3open.org> wrote:
> I double checked, the patch is really in place. Anyway, I will try
> your suggestion and see what happens.

Hmm, if I remember, I worked around this in my own way, but I don't
remember being functionally different to the patch. Since it works for me,
I cna only hope the patch is borked but the code actually in AnyEvent will
be woprking.

> BTW, if I want to terminate the program when EV died (e.g. due to the
> Socket bug), is the following the right think to do? Will there be
> case "exit 1" will fail?

fail, hmm... no, exit 1 will always do "exit 1" without failure, but due
to a perl bug during global destruction, if you have any loops, you might
get segfaults.

however, the exit 1 is not needed, as AE::log fatal will call "exit 1"
itself, and never return.

-- 
                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