2

When running a database query on a specific external site we use, Squid seems to cut off the connection after a consistent period of time (just over a minute).

The query is submitted through a standard web form is that uses GET to query their database.

Firefox 3 just displays a blank page. Internet Explorer throws a 'Page Cannot Be Displayed' error (tested in v6 and v8).

When we perform the same query on the same machine, but bypass the Squid proxy, it works fine. The query takes about two and a half minutes to complete.

There are a few timeout settings in Squid, but I honestly don't know what one to be looking at.

Any possible solutions would be much appreciated.

Cheers

  • I found no obvious defaults that would cause this behavior. Are you overriding any timeout defaults in your configuration? Have you looked at [timeout settings in Squid Configuration Manual](http://www.visolve.com/squid/squid30/timeout.php)? – intgr Nov 18 '09 at 23:57

3 Answers3

1

Second, check if the Website uses SPDY. Squid is not capable of SPDY right now, but both Browsers are. I have seen strange side effects on SPDY-Sites with Squid, like broken connections (after few minutes), pages that load only on the second refresh hit and sites that only loaded 70% of the content. Try to disable SPDY in the pptions (of the browser(s)).

bjoster
  • 4,805
  • 5
  • 25
  • 33
0

Do you have connect_timeout defined in your squid.conf file? If not, you can set it higher than the default 1 minute.

connect_timeout 5 minutes
ircmaxell
  • 1,201
  • 8
  • 20
0

You could change the value of "request_timeout". This value does the following:

"How long to wait for complete HTTP request headers after initial connection establishment."

Just set the value like this: request_timeout 5 minutes

Hope that helps.