From d01c5df960546462e8f5f458131d78689342d6aa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Jun 2011 22:39:01 -0700 Subject: stream_response_epoll: update documentation Yes, this concurrency model is our strangest yet. --- lib/rainbows/stream_response_epoll.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/rainbows/stream_response_epoll.rb b/lib/rainbows/stream_response_epoll.rb index 9ded810..ed13c05 100644 --- a/lib/rainbows/stream_response_epoll.rb +++ b/lib/rainbows/stream_response_epoll.rb @@ -2,12 +2,13 @@ require "sleepy_penguin" require "raindrops" -# Like \Unicorn itself, this concurrency model is only intended for use -# behind nginx and completely unsupported otherwise. +# Like Unicorn itself, this concurrency model is only intended for use +# behind nginx and completely unsupported otherwise. Even further from +# Unicorn, this isn't even a good idea with normal LAN clients, only nginx! # # It does NOT require a thread-safe Rack application at any point, but -# allows streaming data asynchronously via nginx (using the the -# "X-Accel-Buffering: no" header). +# allows streaming data asynchronously via nginx (using the +# "X-Accel-Buffering: no" header to disable buffering). # # Unlike Rainbows::Base, this does NOT support persistent # connections or pipelining. All \Rainbows! specific configuration @@ -28,6 +29,8 @@ module Rainbows::StreamResponseEpoll ep_client = false if headers + # don't set extra headers here, this is only intended for + # consuming by nginx. buf = "HTTP/1.0 #{status}\r\nStatus: #{status}\r\n" headers.each do |key, value| if value =~ /\n/ -- cgit v1.2.3-24-ge0c7