Re: [squid-users] Requests through proxy take 4x+ longer than direct to the internet

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 19 Mar 2010 20:06:02 +1300

David Parks wrote:
> Hi, I set up a dev instance of squid on my windows system.
>
> I've configured 2 browsers (Chrome & Firefox), chrome direct to the
> internet, firefox through the locally running instance of squid.
>
> I expected similar response times from the two browsers, but I consistently
> see firefox (configured to proxy through squid) takes 4x+ longer.
>
> Below are the logs showing response times from a hit on yahoo.com, the
> chrome browser opened the page in ~<2 seconds.
>
> I have used the windows binaries of squid and configured digest password
> authentication, everything else (other than default port) is left as default
> in the config file.
>
> After doing a packet capture I noted the following behavior:
>
> - When going through the proxy: 9 GET requests are made, and 9 HTTP
> responses are received in a reasonable time period (<2sec)
> - After the 9th HTTP response is sent, there is a 4 second delay until
> the next GET request is made
> - Then 6 GET requests are made, and 6 HTTP responses are received in a
> reasonable amount of time.
> - After the 6th GET request in this second group there is a 5 second
> delay until the next GET request is made.
> - This pattern repeats its self when the proxy is in use.
> - This pattern does not occur when I am not connected through the proxy.
>
> Any thoughts on this behavior?
>

This blog article explains the issues involved:

http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Fri Mar 19 2010 - 07:06:10 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 20 2010 - 12:00:05 MDT