aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib
diff options
context:
space:
mode:
authorTinco Andringa <mail@tinco.nl>2016-07-01 00:42:51 +0200
committerTinco Andringa <mail@tinco.nl>2016-07-01 23:03:30 +0200
commit3120b51de7d391d04eae5332b91c753d0643cbd4 (patch)
tree15a1d2fe4d11a6df14c5763b15331ea0530cd621 /actioncable/lib
parentb036b7a8106e4362f909401cc5a26c92887d2852 (diff)
downloadrails-3120b51de7d391d04eae5332b91c753d0643cbd4.tar.gz
rails-3120b51de7d391d04eae5332b91c753d0643cbd4.tar.bz2
rails-3120b51de7d391d04eae5332b91c753d0643cbd4.zip
close hijacked i/o socket after use (fixes #25613)
Diffstat (limited to 'actioncable/lib')
-rw-r--r--actioncable/lib/action_cable/connection/stream.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/connection/stream.rb b/actioncable/lib/action_cable/connection/stream.rb
index 0cf59091bc..c250cf92fc 100644
--- a/actioncable/lib/action_cable/connection/stream.rb
+++ b/actioncable/lib/action_cable/connection/stream.rb
@@ -50,6 +50,7 @@ module ActionCable
def clean_rack_hijack
return unless @rack_hijack_io
@event_loop.detach(@rack_hijack_io, self)
+ @rack_hijack_io.close
@rack_hijack_io = nil
end
end