Re: [squid-users] Confusing error condition ...

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 06 May 2003 09:46:40 +0200

tis 2003-05-06 klockan 06.27 skrev Adam Finster:
> What we should be sending back from our service is:
>
> ====================================================
> Received: HTTP/1.0 200 OK
> Server: cvTcpSvr
> Date: 06/05/2003 1:06:14 PM
> Content-Type: text/html
> Content-Length: 707
> X-Cache: MISS from SquidNT
> Proxy-Connection: keep-alive
>
> 166%226%71%51%83%92%131%118%73%50%61%37%104%158%198%76%90%245%98%64%149%32%8%153%254%51%237%201%121%21%230%47%96%28%165%79%120%85%34%86%128%192%199%169%246%164%103%158%151%89%191%37%89%29%151%126%2%22%128%177%113%14%57%50%34%221%86%245%39%11%89%40%210%94%36%225%249%214%232%241%34%233%41%223%201%39%41%208%136%53%96%196%155%105%80%156%145%18%31%53%217%213%45%104%210%241%60%147%149%73%181%253%102%26%84%232%78%91%33%140%134%236%169%196%218%67%42%105%17%61%66%188%76%183%6%50%106%175%107%232%224%83%15%230%117%3%169%39%53%235%119%89%35%144%253%18%208%128%245%67%114%1%255%94%39%140%13~EOF~

This content is no where near 707 octets in length.

> Would the proxy server be considering the ~ characters at the end of
> our data stream a problem?

No. The proxy does not care what octets there is in the response body,
only how many of them there are.

But even if sending a short response you should not see an error by
Squid. Only if you do not send a response at all shuold you see
ERR_ZERO_SIZE_OBJECT.

In situations like this I advise to look into the network traffic
between Squid and the web server with a TCP packet decoder. ngrep is a
good tool for this on UNIX. I am not very familiar with the tools for
Windows but I know there exists very good tools for Windows as well.

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.
If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Tue May 06 2003 - 01:46:51 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:17 MST