Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi Nick, I have no idea why duplicate the stdout, and seems that no one deals with the stream closing in the library. Please have a look at the main source code, http://www.sfr-fresh.com/unix/www/gcgi-0.9.5.tar.gz:a/libgcgi.a-0.9.5/src/gcgi.c I guess this is the official website of this library,

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Nick Kew
On 28 May 2010, at 06:23, Chen Chien-Yu wrote: > Hi William, > > I reckon it should be mod_cgi, the CGI library I use is called "GNU CGI > Library in C, v0.9.5" which has been maintained for many years. > > The function below is the way the CGI init and open the stream. > > gcgiReturnType >

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi, These are the modules in my Apache r...@~# /usr/local/apache/bin/httpd -l | more Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_l

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi William, I reckon it should be mod_cgi, the CGI library I use is called "GNU CGI Library in C, v0.9.5" which has been maintained for many years. The function below is the way the CGI init and open the stream. gcgiReturnType initCgi( ) { */* Dup stdout to gcgiOut */* *gcgifd = dup(file

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread William A. Rowe Jr.
On 5/26/2010 8:24 AM, Chen Chien-Yu wrote: > > It seems that some packets are queued in the Apache, ..?! > I describe the process as below, > 1. Client send http request to the server, http://myhost/web.cgi, the > cgi is implemented in GNU CGI which has been dead since 2002. If the CGI closes th

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Chen Chien-Yu
Hi Jeff, Thanks for your reply. My OS is Linux with kernel 2.6.x. Actually, as your suggest, I've been tracing the Apache source code for a couple of days. I'm new to the Apache, seems that something wrong between GNU CGI and mod_cgi, not sure. But I might give up the upgrading due to the limited

Re: [us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-27 Thread Jeff Trawick
On Wed, May 26, 2010 at 9:24 AM, Chen Chien-Yu wrote: > Hi, > > I encountered a problem after upgrading Apache to 2.2.15. > The client will be stuck and load infinitely via the HTTP protocol, but it > worked correctly in 2.0.55 before I upgraded. what OS? you probably need to get a syscall trace

[us...@httpd] HTTP doesn't work after upgrading from 2.0.55 to 2.2.15

2010-05-26 Thread Chen Chien-Yu
Hi, I encountered a problem after upgrading Apache to 2.2.15. The client will be stuck and load infinitely via the HTTP protocol, but it worked correctly in 2.0.55 before I upgraded. I tried to sniffer the packet, and found 1. If the page size is larger, most of the page and http header will be