select() errors and AnyEvent::Loop

Marc Lehmann schmorp at schmorp.de
Tue Jun 8 08:44:00 CEST 2021


On Mon, Jun 07, 2021 at 12:57:30PM -0400, Felipe Gasper <felipe at felipegasper.com> wrote:
> > 	I’ve noticed that AnyEvent::Loop doesn’t check for select() failures. Is this by design?
> > 
> > 	In my testing it leads to a tight loop if, e.g., a file descriptor gets closed from underneath (possible w/ buggy XS modules or misuse of POSIX::close()) or if ENOMEM happens.
> 
> Pursuant to this: what if the following were added?

I'm reluctant to add something that crashes a possibly correctly working
program to give a not very useless diagnostic for broken programs.

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