Skip to content

Commit 8e671df

Browse files
committed
* lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): TimeoutError is
obsolete, use Timeout::Error instead. [ruby-core:23821] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 753d4bb commit 8e671df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/protocol.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ def rbuf_fill
137137
if IO.select([@io], nil, nil, @read_timeout)
138138
retry
139139
else
140-
raise Timeout::TimeoutError
140+
raise Timeout::Error
141141
end
142142
rescue IO::WaitWritable
143143
# OpenSSL::Buffering#read_nonblock may fail with IO::WaitWritable.
144144
# http://www.openssl.org/support/faq.html#PROG10
145145
if IO.select(nil, [@io], nil, @read_timeout)
146146
retry
147147
else
148-
raise Timeout::TimeoutError
148+
raise Timeout::Error
149149
end
150150
end
151151
end

0 commit comments

Comments
 (0)