yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] http_client: preserve HTTP state after hijack
@ 2015-04-03  1:53  7% Eric Wong
  0 siblings, 0 replies; 1+ results
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 related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-04-03  1:53  7% [PATCH] http_client: preserve HTTP state after hijack Eric Wong

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

	https://yhbt.net/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).