You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Mendonce, Kiran (STSD)" <ki...@hp.com> on 2006/05/09 00:15:20 UTC

Problem with mod_cgid and large POST queries

If I use TCP socket instead of the default unix doman socket for the
Scriptsock directive, I have a problem when there is a huge post
payload. I have a form that sends a huge volume of data to a CGI script.
I get an error on the browser.

I did some debugging and found that the CGI process terminates even
before httpd can send it all of the data. But the CGI process has sent
out the Content Length and another message expected of it to the httpd.
Httpd while reading the pipe that it has with the CGI script reads the
data sent by the CGI process. However, the next read() fails because
with an ECONNRESET. Given that the CGI process has done what is expected
of it and that the response has reached httpd, isnt this a bug with
mod_cgid ? IMO, ECONNRESET should be ignored in this case and the
response should reach the client.

Please let me know your thoughts.

Regards,
Kiran

Re: Win32 binary port of Apache 2.2.2?

Posted by Sierk Bornemann <si...@gmx.de>.
At 12:37 09.05.2006, you wrote:
>Maybe you overlooked it, there is a win32 .msi binary, see
>
>http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/

Indeed!
I must have overlooked it.

Thanks!

Sierk

Sierk Bornemann | Hannover | Germany
ICQ:    221105136
e-mail:  sierkb@gmx.de
URL:     http://sierkbornemann.de/  


Re: Win32 binary port of Apache 2.2.2?

Posted by Steffen <in...@apachelounge.com>.
Maybe you overlooked it, there is a win32 .msi binary, see

http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/

Steffen

----- Original Message ----- 
From: "Sierk Bornemann" <si...@gmx.de>
To: <de...@httpd.apache.org>
Sent: Tuesday, May 09, 2006 11:05
Subject: Win32 binary port of Apache 2.2.2?


> Is there any reason, why the win32 binary port (Installer, .msi file) 
> of Apache2.2.2 delays or is hold back again?
> 
> 
> Sierk
> 
> Sierk Bornemann | Hannover | Germany
> ICQ:    221105136
> e-mail:  sierkb@gmx.de
> URL:     http://sierkbornemann.de/  
> 
>

Win32 binary port of Apache 2.2.2?

Posted by Sierk Bornemann <si...@gmx.de>.
Is there any reason, why the win32 binary port (Installer, .msi file) 
of Apache2.2.2 delays or is hold back again?


Sierk

Sierk Bornemann | Hannover | Germany
ICQ:    221105136
e-mail:  sierkb@gmx.de
URL:     http://sierkbornemann.de/  


Re: Problem with mod_cgid and large POST queries

Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Tue, May 09, 2006 at 03:45:20AM +0530, Mendonce, Kiran (STSD) wrote:
> If I use TCP socket instead of the default unix doman socket for the
> Scriptsock directive, 

How are you doing that? Are you hacking the source?

> before httpd can send it all of the data. But the CGI process has sent
> out the Content Length and another message expected of it to the
> httpd.  Httpd while reading the pipe that it has with the CGI script
> reads the data sent by the CGI process. However, the next read() fails
> because with an ECONNRESET. 

If it's hanging around doing nothing for a while, then your kernel will
usually kill a TCP socket after some default keepalive time. Seems
reasonable.

> Given that the CGI process has done what
> is expected of it and that the response has reached httpd, isnt this a
> bug with mod_cgid ? IMO, ECONNRESET should be ignored in this case and
> the response should reach the client.

How exactly is mod_cgid supposed to re-establish a connection with the
CGI?

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net