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

2010-06-02 Thread Chen Chien-Yu
Hi, First, I'd like to appreciate the helps from William and Jeff. This is the mail I posted in APR mail list. http://mail-archives.apache.org/mod_mbox/apr-dev/201006.mbox/ajax/%3caanlktilutimlujysja8pdj7a16ti_gw6lu-e9u6i5...@mail.gmail.com%3e -

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

2010-06-01 Thread Chen Chien-Yu
Hi All, I am sure the problem is irrelevant to the CGI and mod_CGI. Because I try to load a image file, the result is the same. And I forget to say one thing, the platform I'm using is a PowerPC architecture in an embedded system, so the apache is cross-compiled. I guess it might be the cause, an

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

2010-06-01 Thread Chen Chien-Yu
Hi All, After using the strace tools, there's a new find. It will stop at the function call read() A infinite loop happens in server/core_filters.c ap_core_input_filter(). if (mode == AP_MODE_EATCRLF) { apr_bucket *e; const char *c; while (1) { if (AP

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

2010-05-30 Thread Chen Chien-Yu
Hi William, I'm sorry to confuse you. Please let me reorganize the problem and my observations. Client HTTP Apache Mod-CGI xxx.cgi login.html A client(browser) access the URI, http://xxx.xxx.xxx/xxx.cgi which is located on the Apache 2.2.15, but finally what it got was

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

2010-05-28 Thread William A. Rowe Jr.
On 5/28/2010 3:08 AM, Chen Chien-Yu wrote: > Hi William, > > I gave you the incorrect information in the previous post. > > cgi_read_stdout() in cgi_bucket_read() in mod_cgi.c, the data length is > 806 followed by 0. (Not the 0 and 5 buckets) > then ap_core_output_filter() found a 0 length bucket

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

2010-05-28 Thread Chen Chien-Yu
Hi William, I gave you the incorrect information in the previous post. cgi_read_stdout() in cgi_bucket_read() in mod_cgi.c, the data length is 806 followed by 0. (Not the 0 and 5 buckets) then ap_core_output_filter() found a 0 length bucket, and appended a last-chunk bucket? Thanks Best regards

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

2010-05-28 Thread Chen Chien-Yu
Hi William, This is the place I found the 0 and 5 length bucket, cgi_read_stdout() in cgi_bucket_read() in mod_cgi.c which is the function for reading the data from the CGI bucket. So can I say that mod_cgi is the module my Apache uses instead of the mod_cgid. (And I didn't see the mod_cgid throug

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

2010-05-27 Thread Chen Chien-Yu
Hi William, I've ever mentioned if I comment out the "Listen 443" and leave only the "Listen 80", the client can get the page without problem via HTTP. (In this successful case, I also see the two 0 and 5 length bucket, don't know why they are sent out even reach the EOS) The problem only exists

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

2010-05-27 Thread William A. Rowe Jr.
On 5/27/2010 11:04 PM, Chen Chien-Yu wrote: > Hi William, > > Refer to your words, so it's a bug in the bucket brigade mechanism? > Should I report it to the Apache bug system? > The two buckets are processed in the ap_core_output_filter(), and in the > case of EOS bucket (APR_BUCKET_IS_EOS is tru

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

2010-05-27 Thread Chen Chien-Yu
Hi William, Refer to your words, so it's a bug in the bucket brigade mechanism? Should I report it to the Apache bug system? The two buckets are processed in the ap_core_output_filter(), and in the case of EOS bucket (APR_BUCKET_IS_EOS is true) That's why, the specific two buckets aren't sent out

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

2010-05-27 Thread William A. Rowe Jr.
On 5/27/2010 10:44 PM, Chen Chien-Yu wrote: > Hi, > > I'm not familiar with the bucket, brigade at all. > It seems that the chunk will be sent via bucket brigade. > I found the stuck happen when the length of the bucket is "0" and the > next length of the bucket is "5" (0\r\n\r\n, is this the last

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

2010-05-27 Thread Chen Chien-Yu
Hi, I'm not familiar with the bucket, brigade at all. It seems that the chunk will be sent via bucket brigade. I found the stuck happen when the length of the bucket is "0" and the next length of the bucket is "5" (0\r\n\r\n, is this the last chunk?). Why isn't the last chunk inserted in the buck