class Rack::StreamingProxy::Response

Rack::StreamingProxy by default doesn't handle closing, which leads to stale (but still running) connections. Handle the close by quitting the child (it will close connection with upstream automatically).

Public Class Methods

new(piper) click to toggle source
# File lib/conjur/webserver/api_proxy.rb, line 85
def initialize piper
  @piper = piper
  @client_http_version = '1.0'
  receive
end

Public Instance Methods

close() click to toggle source
# File lib/conjur/webserver/api_proxy.rb, line 91
def close
  @piper.signal :QUIT
end