diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-04-12 09:52:41 -0700 |
---|---|---|
committer | Erich Menge <erich.menge@me.com> | 2012-08-15 08:43:49 -0500 |
commit | bccc35b13e4782bde4a8def9b52c21f1eda0b4b1 (patch) | |
tree | 7edcb85799b6a651d04979480e67997d1a12f2bd /actionpack/CHANGELOG.md | |
parent | 786713a3abc375fab4d5c2f6f62a878c2ab51022 (diff) | |
download | rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.tar.gz rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.tar.bz2 rails-bccc35b13e4782bde4a8def9b52c21f1eda0b4b1.zip |
Backport 5c51cd0: #send_file leans on Rack::Sendfile to X-Accel-Redirect the file's path, so opening the file to set the response body is wasteful. Set a FileBody wrapper instead that responds to to_path and streams the file if needed.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 6a7087a4bd..9172c78eba 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -7,6 +7,12 @@ *Ravil Bayramgalin* +* Performance Improvement to send_file: Avoid having to pass an open file handle as the response body. Rack::Sendfile + will usually intercept the response and just uses the path directly, so no reason to open the file. This performance + improvement also resolves an issue with jRuby encodings, and is the reason for the backport, see issue #6844. + + *Jeremy Kemper & Erich Menge* + ## Rails 3.2.8 (Aug 9, 2012) ## |