[ruby-cvs:57495] normal:r50347 (trunk): connect_nonblock(..., exception: false) does not raise EISCONN

normal at ruby-lang.org normal at ruby-lang.org
Mon Apr 20 11:11:11 JST 2015


normal	2015-04-20 11:11:10 +0900 (Mon, 20 Apr 2015)

  New Revision: 50347

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

  Log:
    connect_nonblock(..., exception: false) does not raise EISCONN
    
    * ext/socket/socket.c (sock_connect_nonblock): do not raise EISCONN
      [ruby-core:68926] [Feature #11072]
    * test/socket/test_nonblock.rb: check non-EISCONN on 2nd connect
    
    This is to reduce exceptions for code which issues a
    (IMHO, unnecessary) second connect() syscall.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/socket.c
    trunk/test/socket/test_nonblock.rb


More information about the ruby-cvs mailing list