1
0
Fork 0
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:
aamine 2002-02-22 12:50:23 +00:00
parent 6fc25c4e87
commit 931c0d46af
2 changed files with 12 additions and 1 deletions

View file

@ -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.

View file

@ -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 )