Issue #5039 has been updated by Hiroshi Nakamura.

Status changed from Assigned to Closed

??中???????????????????????????????#4923??件???????????????#4923????????????????????????????????????中?????議????????????????????????????????????????????????????????boron??????????????????????????????????????????????

SSLSocket#close???OpenSSL???SSL_shutdown()?????????????????????????????????????????????????????????????OpenSSL????????????????????????????????????????????使??????????????????trunk???r32685???ruby_1_9_3???r32660?????????????????????????????????????????????r32219???SSL_shutdown?????????????????????????????????????????????????????????????????????????

boron???chkbuild????????????????????Close??????????
----------------------------------------
Bug #5039:  Re: socket related errors on chkbuild
http://redmine.ruby-lang.org/issues/5039

Author: Akira Tanaka
Status: Closed
Priority: High
Assignee: Hiroshi Nakamura
Category: core
Target version: 1.9.3
ruby -v: -


 2011?7???16???23:09 Tanaka Akira <akr / fsij.org>:
 >
 >>  1) Error:
 >> test_write_nonblock(OpenSSL::TestPair):
 >
 > ????????????????????????????????????????????????
 
 ?????????起??????????????????????????????????
 http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
 ????????????????????
 
 +Fri Jun 24 15:54:14 2011  Hiroshi Nakamura  <nahi / ruby-lang.org>
 +
 +       * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown SSL
 +         connection more gracefully. Call SSL_shutdown() max 4 times until it
 +         returns 1 (success). Bi-directional SSL close has several states but
 +         SSL_shutdown() kicks only 1 transition per call. Max 4 is from
 +         mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data = 4'.
 +         See #4237.
 
 ?????????????????以??????????????
 -- 
 [??中 ???][??????? ?????????][Tanaka Akira]


-- 
http://redmine.ruby-lang.org