You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "dreamwvr@dreamwvr.com" <dr...@dreamwvr.com> on 2004/05/03 19:23:11 UTC

OT[maybe] IPC or broke:)

Hi,
  I have a handler that currently simply authenticates 
a user. Then once they are authenticated they are able to 
run a specific program with diff args living on the server. 

The thing is the program can take from 10 to like 60 seconds
to complete results. 
This means that:
page never really loads since it is waiting for 
results that take far too long to get. Just looking for 
other opinions on handling this cleanly. 

TIA,
dreamwvr@dreamwvr.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: OT[maybe] IPC or broke:)

Posted by Perrin Harkins <pe...@elem.com>.
On Mon, 2004-05-03 at 13:23, dreamwvr@dreamwvr.com wrote:
> The thing is the program can take from 10 to like 60 seconds
> to complete results. 
> This means that:
> page never really loads since it is waiting for 
> results that take far too long to get. Just looking for 
> other opinions on handling this cleanly. 

This is a solved problem.  Either fork or use a queue.  Randal has a
column that shows the forking technique well:

http://www.stonehenge.com/merlyn/WebTechniques/col20.html

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html