Class: BufferedIO
Overview
Make the HTTP socket timeout 10 seconds
Instance Method Summary collapse
-
#initialize(io) ⇒ BufferedIO
constructor
:nodoc: internal use only.
Constructor Details
#initialize(io) ⇒ BufferedIO
:nodoc: internal use only
6 7 8 9 10 11 |
# File 'lib/wdd-ruby-ext/http.rb', line 6 def initialize(io) @io = io @read_timeout = 10 # overrides the default in the Ruby lib, which is 60 seconds. @debug_output = nil @rbuf = '' end |