aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/live.rb
Commit message (Collapse)AuthorAgeFilesLines
* `:nodoc: all` does not remove the constants from the API. [ci skip]Yves Senn2014-06-241-1/+1
| | | | | Need to add individual `:nodoc:` for nested classes / modules to completely remove the constants from the API.
* Handle client disconnect during live streamingMatthew Draper2014-06-081-0/+48
| | | | .. even when the producer is blocked for a write.
* Add multiple lines message support for SSE moduleayaya2014-05-121-1/+2
|
* re-raise error if error occurs before committing in streamingKevin Casey2014-03-141-10/+11
| | | | update the tests, using an if-else
* use the body proxy to freeze headersAaron Patterson2014-03-121-2/+8
| | | | | | avoid freezing the headers until the web server has actually read data from the body proxy. Once the webserver has read data, then we should throw an error if someone tries to set a header
* just ask the response for the commit status, we do not need to ask the jarAaron Patterson2014-03-121-1/+1
|
* only write the jar if the response isn't committedAaron Patterson2014-03-121-4/+8
| | | | | | | | | | | when streaming responses, we need to make sure the cookie jar is written to the headers before returning up the stack. This commit introduces a new method on the response object that writes the cookie jar to the headers as the response is committed. The middleware and test framework will not write the cookie headers if the response has already been committed. fixes #14352
* use built-in exception handling in live controllersAaron Patterson2014-02-281-2/+5
| | | | | | when an exception happens in an action before the response has been committed, then we should re-raise the exception in the main thread. This lets us reuse the existing exception handling.
* live controllers should have live responsesAaron Patterson2014-02-281-2/+14
| | | | | | detect the type of controller we're testing and return the right type of response based on that controller. This allows us to stop doing the weird sleep thing.
* set the error callback to a nice default in case nobody set an error ↵Aaron Patterson2014-02-281-1/+1
| | | | callback and an error happens
* Correct prestreaming controller response status.Kevin Casey2014-02-151-0/+2
| | | | | | if the controller action has not yet streamed any data, actions should process as normal, and errors should trigger the appropriate behavior (500, or in the case of ActionController::BadRequest, a 400 Bad Request)
* Merge branch 'master' into laurocaetano-fix_send_fileAaron Patterson2014-01-101-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (536 commits) doc, API example on how to use `Model#exists?` with multiple IDs. [ci skip] Restore DATABASE_URL even if it's nil in connection_handler test [ci skip] - error_messages_for has been deprecated since 2.3.8 - lets reduce any confusion for users Ensure Active Record connection consistency Revert "ask the fixture set for the sql statements" Check `respond_to` before delegation due to: https://github.com/ruby/ruby/commit/d781caaf313b8649948c107bba277e5ad7307314 Adding Hash#compact and Hash#compact! methods MySQL version 4.1 was EOL on December 31, 2009 We should at least recommend modern versions of MySQL to users. clear cache on body close so that cache remains during rendering add a more restricted codepath for templates fixes #13390 refactor generator tests to use block form of Tempfile Fix typo [ci skip] Move finish_template as the last public method in the generator Minor typos fix [ci skip] make `change_column_null` reversible. Closes #13576. create/drop test and development databases only if RAILS_ENV is nil Revert "Speedup String#to" typo fix in test name. [ci skip]. `core_ext/string/access.rb` test what we are documenting. Fix typo in image_tag documentation ... Conflicts: actionpack/CHANGELOG.md
| * Spelling and Grammar checksAkshay Vishnoi2013-12-121-1/+1
| |
* | Fix stream closing when sending file with `ActionController::Live` included.Lauro Caetano2013-11-301-1/+1
|/ | | | Fixes #12381
* Creating an SSE class to be used with ActionController::Live.wangjohn2013-07-301-0/+74
|
* Fix typoRafael Mendonça França2013-04-091-2/+2
|
* fix AP warning; remove unused variableVipul A M2013-04-091-0/+1
|
* Exception handling for controllers using ActionController::LiveSean Griffin2013-03-181-0/+28
| | | | | | | | | Any exceptions that occured at the view or controller level for a controller using ActionController::Live would cause the server to either hang with an open socket indefinitely, or immediately crash (depending on whether the server was launched with rails s or directly). Changed the behavior of exceptions to act the same as streaming templates for html requests, and allow for an on_error callback if needed.
* Handle conditional get in live requests - this will prevent error when using ↵Bernard Potocki2013-03-141-0/+4
| | | | stale on live streams(issue #9636)
* ensure response.stream is closedSam Ruby2013-03-091-0/+1
|
* push header merge down to a private method so that live responses can have ↵Aaron Patterson2012-08-131-5/+4
| | | | their own header object
* live response headers can be merged with a hashAaron Patterson2012-08-131-0/+4
|
* use a sized buffer to prevent the queue being too largeAaron Patterson2012-08-081-10/+10
|
* Merge pull request #7204 from frodsan/update_conventionsRafael Mendonça França2012-07-311-8/+8
|\ | | | | Follow code conventions in metal/live
| * update coding conventions in metal/liveFrancesco Rodriguez2012-07-301-8/+8
| |
* | fix nodoc in metal/liveFrancesco Rodriguez2012-07-301-4/+4
|/
* fix typo in metal/live [ci skip]Francesco Rodriguez2012-07-301-6/+6
|
* close the response when the response body is set so that normal render calls ↵Aaron Patterson2012-07-291-0/+5
| | | | will work
* header hash is duped before being sent up the rack stackAaron Patterson2012-07-291-0/+4
|
* freeze the header objectAaron Patterson2012-07-291-0/+5
|
* make sure set_response! sets the correct response objectAaron Patterson2012-07-291-0/+9
|
* adding a more docs on closing response streamsAaron Patterson2012-07-291-1/+4
|
* pushing Buffer up to LiveAaron Patterson2012-07-291-22/+22
|
* adding some docsAaron Patterson2012-07-291-1/+26
|
* Controller actions are processed in a separate thread for liveAaron Patterson2012-07-291-2/+26
| | | | | | | | | | responses. Processing controller actions in a separate thread allows us to work around the rack api - we can allow the user to set status and headers, then block until the first bytes are written. As soon as the first bytes are written, the main thread can return the status, headers, and (essentially) a queue for the body.
* raise exceptions on header set after response committedAaron Patterson2012-07-291-0/+21
|
* added live responses which can be written and read in separate threadsAaron Patterson2012-07-291-0/+42