From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9BC311F5F1 for ; Fri, 3 Apr 2015 01:53:26 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH] http_client: preserve HTTP state after hijack Date: Fri, 3 Apr 2015 01:53:26 +0000 Message-Id: <1428026006-23337-1-git-send-email-e@80x24.org> List-Id: 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