[ruby-cvs:57511] normal:r50363 (trunk): socket: avoid common exceptions when calling connect_nonblock

normal at ruby-lang.org normal at ruby-lang.org
Tue Apr 21 05:46:09 JST 2015


normal	2015-04-21 05:46:08 +0900 (Tue, 21 Apr 2015)

  New Revision: 50363

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

  Log:
    socket: avoid common exceptions when calling connect_nonblock
    
    Errno::EISCONN and IO::WaitReadable exceptions are common,
    expensive, and noisy under normal use.  Avoid raising on them
    since they are not exceptional.
    
    * ext/socket/lib/socket.rb (connect_internal): avoid common exceptions
      from connect_nonblock. [ruby-core:68909]

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/lib/socket.rb


More information about the ruby-cvs mailing list