[squid-dev] squid-dev Digest, Vol 31, Issue 47

钱国正 richard.qian at magicwifi.com.cn
Mon Mar 27 02:15:50 UTC 2017


>> 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).

No, I got it from `clientConnection->local`, the httpdns is just a tcp connection to server with
specified protocol, not known to me, it is designed by its user, use 80 port to transfer dns request.

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



It is not a standard protocol in RFC or some standard specification, just some company use 
80 (default for http protocol) port to transfer dns request, they do this because in China many 
ISP would use they own dns server in different places which makes it slow 
or unreachable to the some company's service.


 
 
 
------------------ Original ------------------
From:  "squid-dev-request"<squid-dev-request at lists.squid-cache.org>;
Date:  Sat, Mar 25, 2017 08:00 PM
To:  "squid-dev"<squid-dev at lists.squid-cache.org>; 

Subject:  squid-dev Digest, Vol 31, Issue 47

 
Send squid-dev mailing list submissions to
	squid-dev at lists.squid-cache.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.squid-cache.org/listinfo/squid-dev
or, via email, send a message with subject or body 'help' to
	squid-dev-request at lists.squid-cache.org

You can reach the person managing the list at
	squid-dev-owner at lists.squid-cache.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of squid-dev digest..."


Today's Topics:

   1. Re: on_unsupported_protocol rewrite to support tcp connection
      relay (Alex Rousskov)


----------------------------------------------------------------------

Message: 1
Date: Fri, 24 Mar 2017 08:01:13 -0600
From: Alex Rousskov <rousskov at measurement-factory.com>
To: 钱国正 <richard.qian at magicwifi.com.cn>, squid-dev
	<squid-dev at lists.squid-cache.org>
Subject: Re: [squid-dev] on_unsupported_protocol rewrite to support
	tcp connection relay
Message-ID:
	<d0c3afc9-6189-a659-37a4-69fb40586543 at measurement-factory.com>
Content-Type: text/plain; charset=utf-8

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.



------------------------------

Subject: Digest Footer

_______________________________________________
squid-dev mailing list
squid-dev at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-dev


------------------------------

End of squid-dev Digest, Vol 31, Issue 47
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20170327/f19b77bc/attachment.html>


More information about the squid-dev mailing list