about summary refs log tree commit homepage
path: root/lib/rainbows/revactor
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-24 22:55:30 +0000
committerEric Wong <e@80x24.org>2015-11-24 22:55:47 +0000
commit4d8edc0200b6adae01549331d1a6e483e5e837b8 (patch)
treeb476bc72b05f0939e42e02920f350e32a8389e81 /lib/rainbows/revactor
parentffd561ec37cc0d1df585e33d281737e21b8f7eb4 (diff)
downloadrainbows-4d8edc0200b6adae01549331d1a6e483e5e837b8.tar.gz
In case Revactor starts being maintained again...
(heck, it was probably the reason I started Rainbows! in the first
place...)

Our ReverseProxy stuff was never complete nor marketed;
and probably not worth keeping around at all.
Diffstat (limited to 'lib/rainbows/revactor')
-rw-r--r--lib/rainbows/revactor/client.rb2
-rw-r--r--lib/rainbows/revactor/proxy.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/revactor/client.rb b/lib/rainbows/revactor/client.rb
index 5b1e52d..c24b137 100644
--- a/lib/rainbows/revactor/client.rb
+++ b/lib/rainbows/revactor/client.rb
@@ -32,7 +32,7 @@ class Rainbows::Revactor::Client
   end
 
   def set_input(env, hp)
-    env[RACK_INPUT] = 0 == hp.content_length ?
+    env['rack.input'] = 0 == hp.content_length ?
                       NULL_IO : IC.new(@ts = TeeSocket.new(@client), hp)
   end
 
diff --git a/lib/rainbows/revactor/proxy.rb b/lib/rainbows/revactor/proxy.rb
index 4715981..6bac7d5 100644
--- a/lib/rainbows/revactor/proxy.rb
+++ b/lib/rainbows/revactor/proxy.rb
@@ -22,7 +22,7 @@ class Rainbows::Revactor::Proxy < Rev::IO
     # (instead of Errno::EPIPE), so we need to limit the rescue
     # to just readpartial and let EOFErrors during yield bubble up
     begin
-      buf = readpartial(INPUT_SIZE)
+      buf = readpartial(16384)
     rescue EOFError
       break
     end while yield(buf) || true