summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@ruby-lang.org>2004-08-22 07:28:45 +0000
committergotoyuzo <gotoyuzo@ruby-lang.org>2004-08-22 07:28:45 +0000
commit51751c8d4a8ebe63defac38f68ff89870dfd69d8 (patch)
treee2381cbe807b96f46761bd8100040af2c5b2d999 /lib
parent3f438bfedcd06bdcc3d7f57dc4e545a2e36645f7 (diff)
downloadruby-openssl-history-51751c8d4a8ebe63defac38f68ff89870dfd69d8.tar.gz
* ext/openssl/ossl_ssl.c (ossl_ssl_read):
- should return an empty string if specified length to read is 0. - should check for pending data and wait for fd before reading. - call underlying IO's sysread if SSL session is not started. [ruby-dev:24072], [ruby-dev:24075] * ext/openssl/ossl_ssl.c (ossl_ssl_write): - call underlying IO's syswrite if SSL session is not started. * ext/openssl/ossl_ssl.c (ossl_ssl_pending): new method OpenSSL::SSL#pending. * ext/openssl/lib/openssl/buffering.rb: should not use select. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/openssl/buffering.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/openssl/buffering.rb b/lib/openssl/buffering.rb
index 6fcb143..31dcdf1 100644
--- a/lib/openssl/buffering.rb
+++ b/lib/openssl/buffering.rb
@@ -31,9 +31,6 @@ module Buffering
def fill_rbuff
@rbuffer = "" unless defined? @rbuffer
begin
- if self.respond_to?(:to_io)
- IO.select([self.to_io], nil, nil)
- end
@rbuffer << self.sysread(BLOCK_SIZE)
rescue EOFError
@eof = true