On Tuesday 30 April 2002 10:02 am, Alex Cheung Tin Ka wrote:
> Dear All,
>     I am going to ask an old question about how to generate a pending page
> for my cgi script. Here is my current situation. I have got a time
> consuming query to the database.  After prepare the data, I should post
> those data on to a html page. But the problem is the accessing time is too
> long and the browser is going to be time out. I would like to know is there
> any solution for this.  How to making a pending page that waiting for the
> query?
>
> Regards,
> Alex

DISCLAIMER: not done this personally, it's ourside my area and it's a while 
since I read about it.

Does your program regain control at any point, or does it just block awaiting 
the result set?

If it does not block, then you could periodically send status info back to 
the browser.  As long as the browser is actually receiving *something* it 
won't time-out - a bit like server-push content.

If your program does block, then try sending something immediately before the 
call that blocks and see if that helps.

Make sure you've turned buffering off otherwise the web server won't send the 
content straight away and this will negate all of this.
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to