diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-14 12:46:19 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-14 12:46:19 +0900 |
commit | 65ba41222eb0caf8d882c6fa2e202b313ef2801e (patch) | |
tree | cafb9dd2c1870967a04e768e7b551024770350a4 | |
parent | b8dc2b931a6525d102e657ec9cb951548cbe7925 (diff) | |
download | plum-threaded.tar.gz |
rack: remove unused codethreaded
-rw-r--r-- | lib/plum/rack/listener.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/plum/rack/listener.rb b/lib/plum/rack/listener.rb index a221ade..8af12be 100644 --- a/lib/plum/rack/listener.rb +++ b/lib/plum/rack/listener.rb @@ -111,26 +111,6 @@ module Plum end private - def handle_legacy(svc, e, sock) - if svc.config[:fallback_legacy_host] - svc.logger.info "legacy HTTP: fallbacking to: #{svc.config[:fallback_legacy_host]}:#{svc.config[:fallback_legacy_port]}" - upstream = TCPSocket.open(svc.config[:fallback_legacy_host], svc.config[:fallback_legacy_port]) - upstream.write(e.buf) if e.buf - loop do - ret = IO.select([sock, upstream]) - ret[0].each { |s| - a = s.readpartial(65536) - if s == upstream - sock.write(a) - else - upstream.write(a) - end - } - end - end - ensure - upstream.close if upstream - end # returns: [cert, key] def dummy_key STDERR.puts "WARNING: Generating new dummy certificate..." |