mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/openssl/buffering.rb: increase BLOCK_SIZE
from 1k to 16k bytes. [ruby-talk:78603] * ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc): enable partial write to allow interruption in SSLSocket#sysread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b325fc2d57
commit
923044bba2
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
Sun Aug 10 10:43:05 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/lib/openssl/buffering.rb: increase BLOCK_SIZE
|
||||
from 1k to 16k bytes. [ruby-talk:78603]
|
||||
|
||||
* ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc): enable
|
||||
partial write to allow interruption in SSLSocket#sysread.
|
||||
|
||||
Sun Aug 10 00:34:16 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* cygwin/GNUmakefile: remove unnecessary '--drive-name=$(CC)'
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
module Buffering
|
||||
include Enumerable
|
||||
attr_accessor :sync
|
||||
BLOCK_SIZE = 1024
|
||||
BLOCK_SIZE = 1024*16
|
||||
|
||||
#
|
||||
# for reading.
|
||||
|
|
|
@ -103,6 +103,7 @@ ossl_sslctx_s_alloc(VALUE klass)
|
|||
if (!ctx) {
|
||||
ossl_raise(eSSLError, "SSL_CTX_new:");
|
||||
}
|
||||
SSL_CTX_set_mode(ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
|
||||
SSL_CTX_set_options(ctx, SSL_OP_ALL);
|
||||
return Data_Wrap_Struct(klass, 0, ossl_sslctx_free, ctx);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue