Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Mason: Please Wait While Generating

by davidrw (Prior)
on Jul 18, 2005 at 20:21 UTC ( [id://475875]=note: print w/replies, xml ) Need Help??


in reply to Mason: Please Wait While Generating

The general approach from this article by merlyn can be applied here i think (from this thread: CGI::Application timeout). Basically your building needs to be forked off, and then your "Please wait" screen refreshes to a handler that checks if the process is done, and goes there when it is done. It can also check progress (maybe check filesize or whatever depending on what the build does).
  • Comment on Re: Mason: Please Wait While Generating

Replies are listed 'Best First'.
Re^2: Mason: Please Wait While Generating
by waswas-fng (Curate) on Jul 18, 2005 at 20:39 UTC
    Mind you that N refreshes to your app can happen from this and those N runs can make the generation that much slower than just waiting for the page to be generated. What is taking so long to generate the page in the first place? Is the server underpowered?


    -Waswas
      Mind you that N refreshes to your app can happen from this and those N runs can make the generation that much slower than just waiting for the page to be generated.
      If a simple probe to tell if it's ready or not makes your app go "much slower", then you haven't quite designed it right. Gotta keep the probe cheap.

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://475875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found