# -*- encoding: binary -*- # # HTTP Spew blows chunks (at HTTP servers)! class HTTP_Spew::ChunkyPipe < Kgio::Pipe attr_accessor :error # makes read behave like readpartial without EOFError def read(*args) defined?(@error) and raise @error kgio_read(*args) end end