Look into nph scripts. (non-parsed header) Basically you get to bypass the webserver (and it's output buffering) and talk directly to the browser via the cgi. The also permits real-time display output to be sent to the browser. We have used it for search engine indexing of sites before (indexes have taken as long as 10 minutes.)

I'm not totally sure of the details, but as long as you periodically return data the connection should be held open. IIRC you need a nph script to do this. Try returning a "." every so often. (This also lets the user know something is happening).

Look in the CGI.pm docs for the section titled "USING NPH SCRIPTS"
http://search.cpan.org/doc/LDS/CGI.pm-2.68/CGI.pm


In reply to Re: Browser Timeout by bastard
in thread Browser Timeout by Jonas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.