Thanks for the info. I did some research on the enable_proxy method
and it looks like it could potentially do what I need. I'm having
trouble conceptualizing how it would work however. On one side I have
the UnixConnection (using unix sockets) that connects to Nginx, where
I want the response to be buffered to disk as it's sent out. On the
other end I have my rails code which connects to S3 and grabs the data
I need. Do I need to create an EventMachine connection that reads
data from S3 and immediately proxies it to the UnixConnection? Or is
there another connection in Thin that I'm missing that I want to proxy
to the UnixConnection such that the response data gets sent out
immediately instead of buffered in EventMachine?
Anything you have to clarify would help. Thanks!