yahns Ruby server user/dev discussion
 help / color / mirror / Atom feed
* [PATCH] proxy_pass: comment explaining what rack.hijack calls
@ 2017-03-24  4:45 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-03-24  4:45 UTC (permalink / raw)
  To: yahns-public

"call" is a generic name and may not obvious to somebody
new to the code.
 lib/yahns/proxy_pass.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb
index 0ada4a6..2a37773 100644
--- a/lib/yahns/proxy_pass.rb
+++ b/lib/yahns/proxy_pass.rb
@@ -57,7 +57,7 @@ def init_path_vars(path)
   def call(env)
     # 3-way handshake for TCP backends while we generate the request header
     rr = Yahns::ReqRes.start(@sockaddr)
-    c = env['rack.hijack'].call
+    c = env['rack.hijack'].call # Yahns::HttpClient#call
     req = Rack::Request.new(env)
     req = @path.gsub(/\$(\w+)/) { req.__send__($1) }

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

only message in thread, other threads:[~2017-03-24  4:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24  4:45 [PATCH] proxy_pass: comment explaining what rack.hijack calls Eric Wong

yahns Ruby server user/dev discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 yahns-public yahns-public/ https://yhbt.net/yahns-public \
		yahns-public@yhbt.net yahns-public@rubyforge.org
	public-inbox-index yahns-public

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git