diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-23 05:06:17 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-23 05:06:17 +0000 |
| commit | f0189a046c5b78cabcd521c430e48e8fc5fc29d4 (patch) | |
| tree | 7d474302677a1acde28e4532c64fe416ae9cedd9 /ext/openssl/lib | |
| parent | 964e1c949fae905374db175e98d019fcdef84a78 (diff) | |
| download | ruby-f0189a046c5b78cabcd521c430e48e8fc5fc29d4.tar.gz ruby-f0189a046c5b78cabcd521c430e48e8fc5fc29d4.tar.xz ruby-f0189a046c5b78cabcd521c430e48e8fc5fc29d4.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib')
| -rw-r--r-- | ext/openssl/lib/openssl/buffering.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index 6fcb143fc..31dcdf1f9 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/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 |
