[Lazarus] fpWeb long process progress

Marcos Douglas md at delfire.net
Tue Aug 14 16:47:41 CEST 2012


On Tue, Aug 14, 2012 at 11:34 AM, Michael Schnell <mschnell at lumino.de> wrote:
> On 08/14/2012 04:27 PM, Leonardo M. Ramé wrote:
>>
>> 2) With the TaskId generated by the server, the client calls a CGI method
>> called runLongTask(myTaskId).
>
> I don't know if it's a goad idea to allow a standard CGI to do a looooong
> action before returning top the WebServer.

+1

> At least the WebServer might kill the child task after a few seconds if it
> thinks it has run wild.
>
> Maybe it is possible to configure the appropriate Timeout in the web server
> parameters.

IMHO, maybe is better to use CGI gateway to capture the requests and,
for each one them, start a process -- this method will use a file to
write the log of process, as Leonardo and Michael said.

Marcos Douglas




More information about the Lazarus mailing list