fix const error responses for Rainbows!
commit69e6a793d34ff71da7c8ca59962d627e2fb508d8
authorEric Wong <normalperson@yhbt.net>
Tue, 4 Dec 2012 02:35:26 +0000 (4 02:35 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 4 Dec 2012 02:45:47 +0000 (4 02:45 +0000)
treef2f8dae0446dadf9d58459f82f8d9721176c96c5
parent32333a4d233f73f6fc9d904301f97a4406c446fa
fix const error responses for Rainbows!

Rainbows! relies on the ERROR_XXX_RESPONSE constants of unicorn
4.x.  Changing the constants in unicorn 4.x will break existing
versions of Rainbows!, so remove the dependency on the constants
and generate the error response dynamically.

Unlike Mongrel, unicorn is unlikely to see malicious traffic and
thus unlikely to benefit from making error messages constant.

For unicorn 5.x, we will drop these constants entirely.

(Rainbows! most likely cannot support check_client_connection
 consistently across all concurrency models since some of them
 pessimistically buffer all writes in userspace.  However, the
 extra concurrency of Rainbows! makes it less likely to be
 overloaded than unicorn, so this feature is likely less useful
 for Rainbows!)
lib/unicorn/const.rb
lib/unicorn/http_response.rb
lib/unicorn/http_server.rb