[ruby-cvs:52229] shugo:r45084 (trunk): * ext/socket/init.c (wait_connectable): break if the socket is

shugo at ruby-lang.org shugo at ruby-lang.org
Fri Feb 21 23:59:44 JST 2014


shugo	2014-02-21 23:59:44 +0900 (Fri, 21 Feb 2014)

  New Revision: 45084

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45084

  Log:
    * ext/socket/init.c (wait_connectable): break if the socket is
      writable to avoid infinite loops on FreeBSD and other platforms
      which conforms to SUSv3.  This problem cannot be reproduced with
      loopback interfaces, so it's hard to write test code.
      rsock_connect() and wait_connectable() are overly complicated, so
      they should be refactored, but I commit this fix as a workaround
      for the release of Ruby 1.9.3 scheduled on Feb 24.
      [ruby-core:60940] [Bug #9547]

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/init.c


More information about the ruby-cvs mailing list