Search squid archive

Re: Requests through proxy take 4x+ longer than direct to the internet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux