[ruby-cvs:70833] normal:r63742 (trunk): UNIXSocket#recv_io: trigger GC when out of FDs

normal at ruby-lang.org normal at ruby-lang.org
Mon Jun 25 07:08:15 JST 2018


normal	2018-06-25 07:08:15 +0900 (Mon, 25 Jun 2018)

  New Revision: 63742

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63742

  Log:
    UNIXSocket#recv_io: trigger GC when out of FDs
    
    Make this behavior is consistent with our other FD-allocating
    methods.
    
    EMFILE and ENFILE are not documented nor can I trigger them when
    using UNIXSocket#recv_io.  However, ENOMEM is documented, and
    I've triggered EMSGSIZE on FreeBSD and truncated messages when
    an EMFILE condition is hit on my system.

  Modified files:
    trunk/ext/socket/unixsocket.c


More information about the ruby-cvs mailing list