Permalink
Browse files

adding a more docs on closing response streams

  • Loading branch information...
1 parent dd871a3 commit 08b107e3459425e5fa40efe44638272639f11c5e @tenderlove tenderlove committed Jul 30, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit 08b107e

Please sign in to comment.