Re: Browser times out prior to perl program completing

2004-06-20 Thread Petr Vileta
Are you meaning somethink like this http://web.practisoft.cz/notimeout.cgi Petr Vileta, Czech republic > All of this is very problematic to achieve robustness given the nature of > browsers and the http protocol. Can you redesign the programs so that once > one is launched it does not depend on

Re: Browser times out prior to perl program completing

2004-06-20 Thread Anthony Nemmer
And yes, step #5 was a thumb sucker... not only did it display how far along the stats job had progressed, it also displayed a blue completion bar! =) Tony T. William Schmidt wrote: Tony, I will concede you wrote an imaginative program but questioner said when his programs were interrupted by t

Re: Browser times out prior to perl program completing

2004-06-20 Thread Anthony Nemmer
Yes, all my program was doing was generating web statistics html pages from the raw Apache log files, so no critical database updates were being performed. In fact, if the stats job was aborted by the user, I believe that I deleted any stats html pages that HAD been generated, along with kill

Re: Browser times out prior to perl program completing

2004-06-20 Thread T. William Schmidt
Tony, I will concede you wrote an imaginative program but questioner said when his programs were interrupted by timeout, it corrupted his database. Even if he implemented your solution, he should still take steps to protect the integrity of his database from unexpected disconnection of any type

Re: Browser times out prior to perl program completing: PS

2004-06-20 Thread Anthony Nemmer
Come to think of it, I think the (empty) status file may be created at an earlier time, before the self-refreshing CGI script or the sequence of perl programs both get kicked off. The name of the file is then passed to the CGI script and thence to the sequence of perl programs so that all know

Re: Browser times out prior to perl program completing

2004-06-20 Thread Anthony Nemmer
Let me rephrase what I did to solve this problem. I wrote a web stats package that consisted of a sequence of perl programs that analyzed web log files on a user-demand basis. Depending on the size of the Apache log file, these sequence of programs could and did time out when run as part of a

Re: Browser times out prior to perl program completing

2004-06-20 Thread T. William Schmidt
All of this is very problematic to achieve robustness given the nature of browsers and the http protocol. Can you redesign the programs so that once one is launched it does not depend on a continuous browser connection? Make the database programs asynchronous. If the user who requested the t

RE: Browser times out prior to perl program completing

2004-06-20 Thread Jason Brown
I generally think that in this case you should consider going asynchronous, by using something like message queuing - the basic structure as follows : - User hits page with web browser, identifies self - Simple little script adds job to queue, returns thank you message to user - Background process