Class: WEBrick::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/jscmd/proxyserver.rb

Instance Method Summary collapse

Instance Method Details

#original_send_bodyObject



16
# File 'lib/jscmd/proxyserver.rb', line 16

alias_method :original_send_body, :send_body

#send_body(socket) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/jscmd/proxyserver.rb', line 17

def send_body(socket)
  begin
    original_send_body(socket)
  rescue Errno::ECONNABORTED
    raise Errno::ECONNRESET
  end
end