diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/lib/openssl/buffering.rb | 2 | ||||
-rw-r--r-- | ext/openssl/ossl_ssl.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index 61eb9dcc04..f07e5bc4c1 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/lib/openssl/buffering.rb @@ -17,7 +17,7 @@ module Buffering include Enumerable attr_accessor :sync - BLOCK_SIZE = 1024 + BLOCK_SIZE = 1024*16 # # for reading. diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index db28ed3640..3f25a077fb 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -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); } |