Class: BufferedIO

Inherits:
Object show all
Defined in:
lib/wdd-ruby-ext/http.rb

Overview

Make the HTTP socket timeout 10 seconds

Instance Method Summary collapse

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