hi
i have a php cgi scripts that
1. generates an http response , this takes less than a second
2. do some stuff that may take some time, lets say a minute
when posting to that cgi, although the html is returned in less then a
second, the request is not closed until the minute has passed.
i want
-il@cs.huji.ac.il
Subject: cgi bg
hi
i have a php cgi scripts that
1. generates an http response , this takes less than a second
2. do some stuff that may take some time, lets say a minute
when posting to that cgi, although the html is returned in less then a
second, the request
Hi Erez,
Did you include the response header
Connection: close
?
- yba
On Mon, 25 Aug 2014, Erez D wrote:
Date: Mon, 25 Aug 2014 10:25:49 +0300
From: Erez D erez0...@gmail.com
To: linux-il linux-il@cs.huji.ac.il
Subject: cgi bg
hi
i have a php cgi scripts that
1. generates an http
On Mon, Aug 25, 2014 at 10:25 AM, Erez D erez0...@gmail.com wrote:
hi
i have a php cgi scripts that
1. generates an http response , this takes less than a second
2. do some stuff that may take some time, lets say a minute
when posting to that cgi, although the html is returned in less then
Hi,
As far as I recall, the connection closes only when the cgi script's
stdout closes, which is usually when the script terminates.
If you fork() the process or just go on doing stuff, a file handle
attached to stdout remains open, which is probably why the HTTP
connection remains open.
thanks,
not so easy to use, as i can not use stdout anymore
but it works.
On Mon, Aug 25, 2014 at 10:57 AM, shimi linux...@shimi.net wrote:
On Mon, Aug 25, 2014 at 10:25 AM, Erez D erez0...@gmail.com wrote:
hi
i have a php cgi scripts that
1. generates an http response , this takes less
you can re-open stdout and point it to a file (perhaps even to /dev/null).
On 08/25/2014 11:41 AM, Erez D wrote:
thanks,
not so easy to use, as i can not use stdout anymore
but it works.
On Mon, Aug 25, 2014 at 10:57 AM, shimi linux...@shimi.net
mailto:linux...@shimi.net wrote:
On