[Tutor] SOLVED: Re: cgi script: how to continue a process in the background and return from cgi script
Moritz Lennert
mlennert at club.worldonline.be
Sun Feb 12 21:36:00 CET 2006
On Fri, February 10, 2006 21:03, Hugo González Monteverde wrote:
>
>> So, could some give me a pointer to possible solutions ? Do I have to
>> make the last part of my program a seperate program and go through a
>> system call ?
>
> Hi,
>
> I have had this problem before. The timeout problem with Apache remains
> because STDOUT of both child and the parent are open. Apache keeps
> thinking the CGI is still sending data until the filehandle is closed.
>
> I have solved it in the pas using this recipe, which is similar to the
> one you used before:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731
I got it to work with this recipe, thanks a lot ! (also to Beilin Zhang
who said the same about IO streams)
Moritz
More information about the Tutor
mailing list