Timeout when "Auto detect Proxy" is used
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > Timeout when "Auto detect Proxy" is used




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Timeout when "Auto detect Proxy" is used  
QuantumRiff


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 06:16 AM

I am having an issue with timeouts using squid with both IE and
Firefox when using "auto detect proxy"  When I am autodetecting the
proxy server, if I type in an invalid domain name (like google.comm,
or googlec.om, etc) it will take upwards of 20 seconds to timeout, and
give me the squid error page that the domain does not exist.  During
this time, the browser completely locks up, and is unusable.  However,
during my troubleshooting, I have noticed that if I manually set the
proxy settings in the browsers (with the same rules and execptions as
the proxy.pac and wpad.dat files, the timeout does not happen.  The
browser does not lock up, and the "domain does not exist" squid error
page shows almost instantly.  Unfortunately, due to people that travel
on the road, manually setting the Proxy is a problem prone thing, as
their browsers don't want to work "on the road" unless they connect to
our VPN.  I have seen many other posts about the long timeouts before,
but never a good resolution.  I was wondering if Anyone could point me
towards a fix, or if I have errors in my file.

Thank you...

Our Auto Proxy config file:

function FindProxyForURL(url, host)
// Our domain, and students are on our side of the proxy
// if it's one of our internal sites, don't proxy it
if (shExpMatch(url, "*.ourdomain.edu/*"))  {return "DIRECT";}
if (shExpMatch(url, "*.olddomain.us/*"))   {return "DIRECT";}
if (shExpMatch(url, "*.students/*"))       {return "DIRECT";}
if (shExpMatch(url, "*.amazon.com/*"))     {return "DIRECT";}
if (shExpMatch(url, "*.enterprise.com/*")) {return "DIRECT";}
if (shExpMatch(url, "*.alaskaair.com/*"))  {return
"DIRECT";}
if (shExpMatch(url, "127.0.0.1/*"))        {return "DIRECT";}

// for some reason, ports must be specified separately
if (shExpMatch(url, "*.ourdomain.edu:*/*")) {return "DIRECT";}
if (shExpMatch(url, "*.olddomain.us:*/*"))  {return "DIRECT";}
if (shExpMatch(url, "*.students:*/*"))      {return "DIRECT";}
if (shExpMatch(url, "*.amazon.com:*/*"))    {return "DIRECT";}
if (shExpMatch(url, "*.enterprise.com:*/*")) {return "DIRECT";}
if (shExpMatch(url, "*.alaskaair.com:*/*")) {return "DIRECT";}
if (shExpMatch(url, "127.0.0.1:*/*"))       {return "DIRECT";}

// for some reason, we had to define IP address ranges too
// anything else in the 10.*.*.* range is on our side of the proxy
// we have web servers residing on the following networks
if (isInNet(host, "192.168.5.0",  "255.255.255.0"))    {return
"DIRECT";}
if (isInNet(host, "192.168.42.0", "255.255.255.0"))      {return
"DIRECT";}
if (isInNet(host, "192.168.43.0", "255.255.255.0"))      {return
"DIRECT";}
if (isInNet(host, "my.ip.range.0", "255.255.255.0"))
{return "DIRECT";}
if (isInNet(host, "192.168.2.0", "255.255.255.0"))      {return
"DIRECT";}
if (isInNet(host, "192.168.4.0", "255.255.255.0"))      {return
"DIRECT";}
if (isInNet(host, "1.1.1.1", "255.255.255.0"))      {return
"DIRECT";}
if (isInNet(host, "127.0.0.1", "255.255.255.0"))      {return
"DIRECT";}


// anything specified by a one-word URL is on our side of the proxy
if (isPlainHostName(host))              {return "DIRECT";}

// if we've fallen through to this point, it must be an external

address
return "PROXY proxy.ourdomain.edu:3128";
}






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:46 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register