[ruby-cvs:57104] normal:r49955 (trunk): accept_nonblock: favor rb_hash_lookup2 to avoid Hash#default

normal at ruby-lang.org normal at ruby-lang.org
Fri Mar 13 07:04:46 JST 2015


normal	2015-03-13 07:04:24 +0900 (Fri, 13 Mar 2015)

  New Revision: 49955

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

  Log:
    accept_nonblock: favor rb_hash_lookup2 to avoid Hash#default
    
    * ext/socket/init.c (rsock_s_accept_nonblock): use rb_hash_lookup2
    * ext/openssl/ossl_ssl.c (get_no_exception): new function
      (ossl_ssl_accept_nonblock): use get_no_exception
      (ossl_ssl_read_internal): ditto
      (ossl_ssl_write_nonblock): ditto

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


More information about the ruby-cvs mailing list