about summary refs log tree commit homepage
path: root/Manifest
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-05 22:16:47 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-06 02:56:53 -0700
commita64913eafbee3501a677b1232470838a4ad0fc65 (patch)
tree13d87b48cbe6c153d93b060bab03ca7ba621eeda /Manifest
parent6945342a1f0a4caaa918f2b0b1efef88824439e0 (diff)
downloadunicorn-a64913eafbee3501a677b1232470838a4ad0fc65.tar.gz
This includes an example of tunneling the git protocol inside a
TE:chunked HTTP request.  The example is unfortunately contrived
in that it relies on the custom examples/cat-chunk-proxy.rb
script in the client.  My initial wish was to have a generic
tool like curl(1) operate like this:

  cat > ~/bin/cat-chunk-proxy.sh <<EOF
  #!/bin/sh
  exec curl -sfNT- http://$1:$2/
  EOF
  chmod +x ~/bin/cat-chunk-proxy.sh
  GIT_PROXY_COMMAND=cat-chunk-proxy.sh git clone git://0:8080/foo

Unfortunately, curl will attempt a blocking read on stdin before
reading the TCP socket; causing the git-clone consumer to
starve.  This does not appear to be a problem with the new
server code for handling chunked requests.
Diffstat (limited to 'Manifest')
-rw-r--r--Manifest3
1 files changed, 3 insertions, 0 deletions
diff --git a/Manifest b/Manifest
index 229572c..f8396c4 100644
--- a/Manifest
+++ b/Manifest
@@ -14,7 +14,9 @@ TODO
 TUNING
 bin/unicorn
 bin/unicorn_rails
+examples/cat-chunk-proxy.rb
 examples/echo.ru
+examples/git.ru
 examples/init.sh
 ext/unicorn/http11/ext_help.h
 ext/unicorn/http11/extconf.rb
@@ -24,6 +26,7 @@ ext/unicorn/http11/http11_parser.rl
 ext/unicorn/http11/http11_parser_common.rl
 lib/unicorn.rb
 lib/unicorn/app/exec_cgi.rb
+lib/unicorn/app/inetd.rb
 lib/unicorn/app/old_rails.rb
 lib/unicorn/app/old_rails/static.rb
 lib/unicorn/cgi_wrapper.rb