diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-30 08:32:26 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-04 16:21:17 -0800 |
commit | c38bc88363d4c4f5f639540ca86f4dd1225df79e (patch) | |
tree | 97d039d48177dc571d81a224437dffc7d44045de /lib/rainbows/revactor | |
parent | 1a03f9a525faf4c997546c419de6854223b645c4 (diff) | |
download | rainbows-c38bc88363d4c4f5f639540ca86f4dd1225df79e.tar.gz |
Unique method names makes it easier to follow code and determine where our methods come from.
Diffstat (limited to 'lib/rainbows/revactor')
-rw-r--r-- | lib/rainbows/revactor/body.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/revactor/body.rb b/lib/rainbows/revactor/body.rb index 7bfb5de..9820df3 100644 --- a/lib/rainbows/revactor/body.rb +++ b/lib/rainbows/revactor/body.rb @@ -7,7 +7,7 @@ module Rainbows::Revactor::Body } if IO.method_defined?(:sendfile_nonblock) - def write_body_file(client, body, range) + def write_body_file_sendfile_revactor(client, body, range) body = body_to_io(body) sock = client.instance_variable_get(:@_io) pfx = Revactor::TCP::Socket === client ? :tcp : :unix @@ -33,6 +33,7 @@ module Rainbows::Revactor::Body ensure close_if_private(body) end + ALIASES[:write_body_file] = :write_body_file_sendfile_revactor else ALIASES[:write_body] = :write_body_each end |