[squid-dev] on_unsupported_protocol rewrite to support tcp connection relay

Alex Rousskov rousskov at measurement-factory.com
Fri Mar 24 14:01:13 UTC 2017


On 03/24/2017 04:54 AM, 钱国正 wrote:

> I want to know what's the
> pinning.serverConnection mean? and what it is used for?

Before we dive into low-level details, please allow me to ask an
important high-level question. Your answer may render those low-level
detail irrelevant:

> I want to rewrite the on_unsupported_protocol to support tcp connection
> (non-http protocol, called httpdns not readable, no http header) and
> relay it the server. [...] I need assign the server's address and port

Where will your code get the server address and port from? If the answer
is "from the received httpdns message header", then please do not abuse
on_unsupported_protocol to support "httpdns". Instead, add proper
support for httpdns (which may be limited to forwarding httpdns queries
to the right server if such blind forwarding makes sense).

BTW, can you post a link to the "httpdns" protocol specification (not
API)? And what do you mean by "not readable"?


Thank you,

Alex.



More information about the squid-dev mailing list