summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrhe <rhe@ruby-lang.org>2016-05-21 03:44:10 +0000
committerrhe <rhe@ruby-lang.org>2016-05-21 03:44:10 +0000
commit852c99d0e6d53bda81be4cd797c403648fb36f72 (patch)
tree5bab8220445c04713afe74589613d86570efc71f
parent541f124e923945d2181a24b82161b358bc78d14a (diff)
downloadruby-openssl-history-852c99d0e6d53bda81be4cd797c403648fb36f72.tar.gz
openssl: remove impossible EOFError raise in OpenSSL::Buffering
* ext/openssl/lib/openssl/buffering.rb (read_nonblock, readpartial): Remove impossible EOFError raise. Patch by Zach Anker <zanker@squareup.com>. [GH ruby/openssl#23] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/openssl/buffering.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/openssl/buffering.rb b/lib/openssl/buffering.rb
index d082199..61e1f43 100644
--- a/lib/openssl/buffering.rb
+++ b/lib/openssl/buffering.rb
@@ -132,7 +132,6 @@ module OpenSSL::Buffering
buf.replace(ret)
ret = buf
end
- raise EOFError if ret.empty?
ret
end
@@ -182,7 +181,6 @@ module OpenSSL::Buffering
buf.replace(ret)
ret = buf
end
- raise EOFError if ret.empty?
ret
end