yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
* [PATCH] http_client: preserve HTTP state after hijack
@ 2015-04-03  1:53 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-04-03  1:53 UTC (permalink / raw)
  To: yahns-public

We'll be supporting "un-hijacking" a client socket for proxy_pass
and we must preserve state for pipelined requests.
---
 lib/yahns/http_client.rb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/yahns/http_client.rb b/lib/yahns/http_client.rb
index 46ea3ec..164cac9 100644
--- a/lib/yahns/http_client.rb
+++ b/lib/yahns/http_client.rb
@@ -266,7 +266,6 @@ def hijack_cleanup
     # prevent socket from holding process up
     Thread.current[:yahns_fdmap].forget(self)
     @input = nil # keep env["rack.input"] accessible, though
-    @hs = nil # no need for the HTTP parser anymore
   end
 
   def response_hijacked(fn)
-- 
EW


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-03  1:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-03  1:53 [PATCH] http_client: preserve HTTP state after hijack Eric Wong

Code repositories for project(s) associated with this inbox:

	../../../yahns.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).