Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-14 Thread Alfred Morgan
Florian, > I do hope that most people moved to fastcgi by now and maybe it's time > to shake out scripts that don't handle termination correctly? I don't think there is a "move to fastcgi" happening. Fastcgi is a complicated protocol compared to cgi. Various projects can be implemented with a simp

Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-11 Thread Claudio Jeker
On Thu, Aug 11, 2022 at 11:49:12AM +0200, Florian Obser wrote: > On 2022-08-11 11:39 +02, Claudio Jeker wrote: > > On Wed, Aug 10, 2022 at 09:45:44PM +0200, Omar Polo wrote: > >> On 2022/08/10 15:07:15 +0200, Claudio Jeker wrote: > >> > On Sun, Aug 07, 2022 at 11:10:22AM +0200, Omar Polo wrote: >

Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-11 Thread Florian Obser
On 2022-08-11 11:39 +02, Claudio Jeker wrote: > On Wed, Aug 10, 2022 at 09:45:44PM +0200, Omar Polo wrote: >> On 2022/08/10 15:07:15 +0200, Claudio Jeker wrote: >> > On Sun, Aug 07, 2022 at 11:10:22AM +0200, Omar Polo wrote: >> > Should slowcgi kill the command if SCRIPT_DONE is not set? >> >> R

Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-11 Thread Claudio Jeker
On Wed, Aug 10, 2022 at 09:45:44PM +0200, Omar Polo wrote: > On 2022/08/10 15:07:15 +0200, Claudio Jeker wrote: > > On Sun, Aug 07, 2022 at 11:10:22AM +0200, Omar Polo wrote: > > > blob - ddf83f965d0e6a99ada695694bea77b775bae2aa > > > blob + 1d577ba63efca388ca3644d1a52d9b3d9f246014 > > > --- usr.sb

Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-10 Thread Omar Polo
On 2022/08/10 15:07:15 +0200, Claudio Jeker wrote: > On Sun, Aug 07, 2022 at 11:10:22AM +0200, Omar Polo wrote: > > blob - ddf83f965d0e6a99ada695694bea77b775bae2aa > > blob + 1d577ba63efca388ca3644d1a52d9b3d9f246014 > > --- usr.sbin/slowcgi/slowcgi.c > > +++ usr.sbin/slowcgi/slowcgi.c > > @@ -515,7

Re: slowcgi, httpd and fastcgi abnormal termination

2022-08-10 Thread Claudio Jeker
On Sun, Aug 07, 2022 at 11:10:22AM +0200, Omar Polo wrote: > I'm not sure httpd(8) handles correctly when the fastcgi application > (e.g. slowcgi) closes the connection prematurely. > > To verify it, I'm playing with three simple CGI scripts running under > slowcgi with a very low timeout (-t2).

slowcgi, httpd and fastcgi abnormal termination

2022-08-07 Thread Omar Polo
I'm not sure httpd(8) handles correctly when the fastcgi application (e.g. slowcgi) closes the connection prematurely. To verify it, I'm playing with three simple CGI scripts running under slowcgi with a very low timeout (-t2). The scripts test "hangs" (which slowcgi turns into hard disconnection