aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrhe <rhe@ruby-lang.org>2016-05-21 03:44:10 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-05-31 11:31:27 +0900
commit146c2d3b94c1dd2f9d185a01728fabefcbce219c (patch)
tree74a5e5307b737d46cfad4de733203f4fb08b1c5b /lib
parent103f911e59d6ceb25a604228dc60376638e61db8 (diff)
downloadruby-openssl-146c2d3b94c1dd2f9d185a01728fabefcbce219c.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
Diffstat (limited to 'lib')
-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 d0821990..61e1f43e 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