about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-03-13 02:20:11 +0000
committerEric Wong <e@80x24.org>2015-03-13 02:27:15 +0000
commitbec46d9d2675771a183c934114fe86700e09c39e (patch)
tree46eae6f6651ab8ae9acf912c70ad6350f23d711d /lib
parent81dcac1034c4b3f0338bf42fa777a2806170530b (diff)
downloadyahns-bec46d9d2675771a183c934114fe86700e09c39e.tar.gz
We probably do not want env["rack.input"] to become unusable
upon hijacking.  Only drop the internal reference to it so
it can eventually become garbage-collected, but there's no
point in making env["rack.input"] unreadable.
Diffstat (limited to 'lib')
-rw-r--r--lib/yahns/http_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb
index 15ee9d4..1c3c8dd 100644
--- a/lib/yahns/http_client.rb
+++ b/lib/yahns/http_client.rb
@@ -262,7 +262,7 @@ class Yahns::HttpClient < Kgio::Socket # :nodoc:
     # loop.  EPOLL_CTL_DEL saves about 200 bytes of unswappable kernel memory,
     # so it can matter if we have lots of hijacked sockets.
     self.class.queue.queue_del(self) # EPOLL_CTL_DEL
-    @input = @input.close if @input
+    @input = nil # keep env["rack.input"] accessible, though
     @hs = nil # no need for the HTTP parser anymore
   end