зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
6d781384c5
Коммит
63118829d9
|
@ -1,3 +1,8 @@
|
|||
Sat Jun 13 06:50:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): TimeoutError is
|
||||
obsolete, use Timeout::Error instead. [ruby-core:23821]
|
||||
|
||||
Sat Jun 13 06:45:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_eval.c (rb_f_throw): fixed rdoc about execption.
|
||||
|
|
|
@ -137,7 +137,7 @@ module Net # :nodoc:
|
|||
if IO.select([@io], nil, nil, @read_timeout)
|
||||
retry
|
||||
else
|
||||
raise Timeout::TimeoutError
|
||||
raise Timeout::Error
|
||||
end
|
||||
rescue IO::WaitWritable
|
||||
# OpenSSL::Buffering#read_nonblock may fail with IO::WaitWritable.
|
||||
|
@ -145,7 +145,7 @@ module Net # :nodoc:
|
|||
if IO.select(nil, [@io], nil, @read_timeout)
|
||||
retry
|
||||
else
|
||||
raise Timeout::TimeoutError
|
||||
raise Timeout::Error
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче