diff options
author | Eric Wong <e@80x24.org> | 2016-06-03 20:05:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-05 22:15:58 +0000 |
commit | ae397abb9b85f4aec85bda17a2ff4b60372f1d08 (patch) | |
tree | dc151bf90cfc0a4ff828e1e512b9cd163b15b993 /lib/yahns/req_res.rb | |
parent | 976e81c9ff6ea2d007c486167e01d638bdbb4671 (diff) | |
download | yahns-ae397abb9b85f4aec85bda17a2ff4b60372f1d08.tar.gz |
We cannot rely on env being available after proxy_wait_next
Diffstat (limited to 'lib/yahns/req_res.rb')
-rw-r--r-- | lib/yahns/req_res.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/yahns/req_res.rb b/lib/yahns/req_res.rb index dd4ec87..f585bd9 100644 --- a/lib/yahns/req_res.rb +++ b/lib/yahns/req_res.rb @@ -11,12 +11,14 @@ class Yahns::ReqRes < Kgio::Socket # :nodoc: attr_writer :paused attr_accessor :proxy_trailers attr_accessor :alive + attr_reader :proxy_pass - def req_start(c, req, input, chunked) + def req_start(c, req, input, chunked, proxy_pass) @hdr = @resbuf = nil @yahns_client = c @paused = false @rrstate = input ? [ req, input, chunked ] : req + @proxy_pass = proxy_pass Thread.current[:yahns_queue].queue_add(self, Yahns::Queue::QEV_WR) end |