mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ossl_ssl_write):
- need to set errno on Win32 platform.
- should call rb_sys_fail instead of rasing SSLError if
SSL_ERROR_SYSCALL occured.
- should wait for that the underlying IO become readable or
writable if the error was SSL_ERROR_WANT_READ or
SSL_ERROR_WANT_WRITE. [ruby-dev:25795]
* ext/openssl/lib/openssl/buffering.rb
(Buffering#initialize): should set @eof and @rbuffer.
(Buffering#fill_rbuff): should rescue Errno::EAGAIN.
(Buffering#consume_rbuf): pointless eof flag resetting is deleted.
(Buffering#read): should return an empty string if the specified
size is zero.
(Buffering#readpartial): new method.
(Buffering#readline): fix typo.
(Buffering#getc): return the first character of string correctly.
(Buffering#each): fix typo. suggested by Brian Ollenberger.
(Buffering#readchar): fix typo.
(Buffering#eof?): should read again it the input buffer is empty.
(Buffering#do_write): should rescue Errno::EAGAIN.
(Buffering#puts): use "\n" as the output field separator.
* ext/openssl/lib/openssl/ssl.rb: set non-blocking flag to the
underlying IO.
* ext/openssl/extconf.rb: get rid of GNUmakefile generation.
* text/openssl/test_pair.rb: test for IO like methods.
* test/ruby/ut_eof.rb: test about empty file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
||
|---|---|---|
| .. | ||
| beginmainend.rb | ||
| endblockwarn.rb | ||
| envutil.rb | ||
| marshaltestlib.rb | ||
| test_alias.rb | ||
| test_array.rb | ||
| test_assignment.rb | ||
| test_beginendblock.rb | ||
| test_bignum.rb | ||
| test_call.rb | ||
| test_case.rb | ||
| test_clone.rb | ||
| test_condition.rb | ||
| test_const.rb | ||
| test_defined.rb | ||
| test_env.rb | ||
| test_eval.rb | ||
| test_exception.rb | ||
| test_file.rb | ||
| test_float.rb | ||
| test_gc.rb | ||
| test_hash.rb | ||
| test_ifunless.rb | ||
| test_io.rb | ||
| test_iterator.rb | ||
| test_marshal.rb | ||
| test_math.rb | ||
| test_pack.rb | ||
| test_path.rb | ||
| test_pipe.rb | ||
| test_proc.rb | ||
| test_rand.rb | ||
| test_range.rb | ||
| test_readpartial.rb | ||
| test_settracefunc.rb | ||
| test_signal.rb | ||
| test_string.rb | ||
| test_stringchar.rb | ||
| test_struct.rb | ||
| test_super.rb | ||
| test_system.rb | ||
| test_time.rb | ||
| test_trace.rb | ||
| test_variable.rb | ||
| test_whileuntil.rb | ||
| ut_eof.rb | ||