mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/protocol.rb: set read_timeout dynamically.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6fc25c4e87
commit
931c0d46af
2 changed files with 12 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
Fri Feb 22 22:00:08 2002 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/protocol.rb: set read_timeout dynamically.
|
||||
|
||||
Fri Feb 22 19:59:33 2002 Usaku Nakamura <usa@ruby-lang.org>
|
||||
|
||||
* win32/config.status.in: set LIBRUBY_SO.
|
||||
|
|
|
|||
|
|
@ -98,7 +98,12 @@ module Net
|
|||
attr_reader :socket
|
||||
|
||||
attr_accessor :open_timeout
|
||||
attr_accessor :read_timeout
|
||||
attr_reader :read_timeout
|
||||
|
||||
def read_timeout=( sec )
|
||||
@socket.read_timeout = sec if @socket
|
||||
@read_timeout = sec
|
||||
end
|
||||
|
||||
def active?
|
||||
@active
|
||||
|
|
@ -453,6 +458,8 @@ module Net
|
|||
@socket.addr[3]
|
||||
end
|
||||
|
||||
attr_accessor :read_timeout
|
||||
|
||||
attr_reader :socket
|
||||
|
||||
def connect( otime )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue