in reply to server timeout

When I have a webpage that need to do a long calculation and I don't want the server to timeout the process I use 'fork()' to make a new thread to do the work for me. Eg.
# first part of script # some code if(fork){ output("I'm doing some work, please wait."); exit; } close(STDIN); close(STDERR); # do the rest of the work here

The above code hasn't been tested but is an example of forking off a new thread.

-caedes

Replies are listed 'Best First'.
Re: Re: server timeout
by charlie markwick (Initiate) on Mar 03, 2003 at 12:56 UTC
    Thanks for the suggestion I am not sure where I would start amending the board code to achieve this however. My skill in writing code are only very basic and in perl nil.