dlundquist / sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.
BSD 2-Clause "Simplified" License
2.57k stars 398 forks source link

Character encoding issue in Transfer Protocol #346

Open john-d13 opened 4 years ago

john-d13 commented 4 years ago

I use sniproxy for name based vitrual redirect for hundreds of hosts and for the most part it works properly. I am having issues with one hostname in particular - www.bbc.co.uk.

Here are the symptoms:

Its worth noting, those workarounds will only work for one or 2 queries to the hostname, errors will repeat the cycle. Also on the sniproxy server, no DNS queries are being initiated to target recursor once entered into this error state.

A good start is to understand logically what data sniproxy holds on to during the DNS Cache period and what triggers a restart to fix the problem.

I have tried a myriad of configuration options without luck, including:

Here is an exceprt of the console error from FF Dev Browser

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

john-d13 commented 4 years ago

Creek creek

bcacbe commented 4 years ago

Have you tried the following solution. it fixed all my issues like you're describing. https://github.com/dlundquist/sniproxy/issues/255#issuecomment-521531583