diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-29 19:36:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-07-29 21:43:06 -0700 |
commit | 08b107e3459425e5fa40efe44638272639f11c5e (patch) | |
tree | 9dc3d88fc0a3779e2a40ff7575f94c473b49c6d8 | |
parent | dd871a3d7277cb6c606ac77187909e7da984c5ca (diff) | |
download | rails-08b107e3459425e5fa40efe44638272639f11c5e.tar.gz rails-08b107e3459425e5fa40efe44638272639f11c5e.tar.bz2 rails-08b107e3459425e5fa40efe44638272639f11c5e.zip |
adding a more docs on closing response streams
-rw-r--r-- | actionpack/lib/action_controller/metal/live.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/live.rb b/actionpack/lib/action_controller/metal/live.rb index b0fe0d80ab..e98ad7e2a6 100644 --- a/actionpack/lib/action_controller/metal/live.rb +++ b/actionpack/lib/action_controller/metal/live.rb @@ -24,7 +24,10 @@ module ActionController # :nodoc: # object to be committed. Make sure all headers are set before calling write # or close on your stream. # - # The other caveat is that you actions are executed in a separate thread than + # You *must* call close on your stream when you're finished, otherwise the + # socket may be left open forever. + # + # The final caveat is that you actions are executed in a separate thread than # the main thread. Make sure your actions are thread safe, and this shouldn't # be a problem (don't share state across threads, etc). module Live |