Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f95FQmn40735 for ; Fri, 5 Oct 2001 11:26:49 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 142387 for ; Fri, 05 Oct 2001 08:26:43 -0700 From: "Josh Berkus" Subject: Re: Help with timeouts To: pgsql-php@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 05 Oct 2001 08:26:43 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_===142387====davinci.ethosmedia.com===_" X-Archive-Number: 200110/25 X-Sequence-Number: 578 This is a multi-part MIME message --_===142387====davinci.ethosmedia.com===_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Folks, Some answers: > I have a very complex database operation that can sometimes take > 70-90 > seconds to return results. The web page which displays the results, > however, seems to always timeout at 60seconds despite setting the > Apache > timeout to 300 seconds and set_time_limit to 240. After a helpful web guru called us up from our post, we were able to diagnose what's happening here (donation to be announced later): Regardless of the Timeout and set_time_limit() settings, most browsers will time out at 60 seconds. This is obviously a huge annoyance. Therefore I am offering a *second* charity prize to any person who can give me code (PHP or Perl) which will display a "Processing" screen with an auto-reload to keep the browser interested while waiting 60 to 120 seconds for a database response in the background. *Someone* must have done this already, even though multi-threading in PHP & Perl is nigh impossible. -Josh Berkus --_===142387====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===142387====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===142387====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===142387====davinci.ethosmedia.com===_--