Make our HttpRequest object a global constant
commitbb3d776d8c07f2492ec5a3ef22184f5f59e116c7
authorEric Wong <normalperson@yhbt.net>
Thu, 28 May 2009 18:40:33 +0000 (28 11:40 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 28 May 2009 18:45:15 +0000 (28 11:45 -0700)
tree9b8d59671de7c92578107033a9fc865779c0c44b
parent18c4ade90959d4eaa0048e83f3ce1052fa8a5905
Make our HttpRequest object a global constant

This should be faster/cheaper than using an instance variable
since it's accessed in a critical code path.  Unicorn was never
designed to be reentrant or thread-safe at all, either.
lib/unicorn.rb
lib/unicorn/http_request.rb