about summary refs log tree commit homepage
path: root/extras
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-10 02:30:29 +0000
committerEric Wong <e@80x24.org>2019-05-10 02:30:29 +0000
commit995eefdf9f09f1a4621e3aab0184c5ae2787ca0c (patch)
treed806646312d2d3a14fce975cc24bb8a55d470d47 /extras
parent2ca6808f7d91b1dd44cd5b6eb31e9b272d865891 (diff)
downloadyahns-995eefdf9f09f1a4621e3aab0184c5ae2787ca0c.tar.gz
Might as well... this has been in use at YHBT.net for ~4 years
at this point.  And given nginx has new corporate overlords,
maybe a decidedly non-enterprisey alternative is worth
"marketing" :P

Previous discussion from 2016:
https://YHBT.net/yahns-public/20160220081619.GA10850@dcvr.yhbt.net/
Diffstat (limited to 'extras')
-rw-r--r--extras/proxy_pass.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/extras/proxy_pass.rb b/extras/proxy_pass.rb
index af6fe01..40bf19a 100644
--- a/extras/proxy_pass.rb
+++ b/extras/proxy_pass.rb
@@ -10,12 +10,13 @@ require 'rack/request'
 require 'thread'
 require 'timeout'
 
-# Totally synchronous and Rack 1.1-compatible, this will probably be rewritten.
-# to take advantage of rack.hijack and use the non-blocking I/O facilities
-# in yahns.  yahns may have to grow a supported API for that...
+# Totally synchronous and Rack 1.1-compatible.  See Yahns::ProxyPass for
+# the rewritten version which takes advantage of rack.hijack and uses
+# the internal non-blocking I/O facilities in yahns.  yahns may have to
+# grow a supported API for that...
+#
 # For now, we this blocks a worker thread; fortunately threads are reasonably
 # cheap on GNU/Linux...
-# This is totally untested but currently doesn't serve anything important.
 class ProxyPass # :nodoc:
   class ConnPool
     def initialize