about summary refs log tree commit homepage
path: root/lib/raindrops/middleware.rb
DateCommit message (Collapse)
2016-07-29use HTTPS and move homepage to https://bogomips.org/raindrops/
While raindrops.bogomips.org exists, having extra subjectAltName entries is bloating the certificate. This will make it easier to mirror the homepage on Tor hidden services.
2016-02-24middleware: minor bytecode size reduction
The "defineclass" VM instruction takes more operands and uses more space than "setconstant". Since we have no methods or subclasses/constants to define under the "Raindrops::Middleware::Stats" class,
2016-02-02remove optimizations which made sense for older rubies
Since Ruby 2.2, frozen string literals are implied for Hash#[] lookups. Constant lookups have inline caching since Ruby 1.9 (from YARV).
2012-01-07avoid calling tcp_listener_stats when it is not available
Signed-off-by: Aman Gupta <aman@tmm1.net> Acked-by: Eric Wong <normalperson@yhbt.net>
2011-03-17rdoc: document the demo URLs
2011-03-10rdoc: 100% documentation coverage!
Of course, RDoc doesn't know quantity vs quality :)
2011-03-08preliminary Rack app to track last_data_recv
Seems to basically work
2011-02-26middleware: split out proxy class
It's easier to find this way.
2011-02-26middleware: avoid double decrement when reading stats
Oops!
2011-02-25proxy +to_path+ calls in the response body
We need to do this for apps that depend on things like the sendfile() optimizations in Rainbows!
2011-02-15middleware: add ipv6 address detection for Unicorn
Since Unicorn and Rainbows! support IPv6 now, it makes sense to support the rfc2732-style addresses it returns.
2011-02-15middleware: switch to ivars
These are slightly faster than regular method dispatch
2011-02-15middleware: avoid capturing block variable
It's a needless allocation
2011-02-15unindent modules
No need to clutter/confuse namespace lookups
2010-05-04cleanup a few typos
2010-05-04middleware: no need to ensure in #close
If stats.decr_writing never fails, really (or something is seriously wrong (like memory corruption) and the ensure block wouldn't fire anyways).
2010-05-04use Unicorn.listener_names method if available
This allows easier configuration when used with Unicorn and derived servers (Rainbows! and Zbatery).
2010-04-07initial