Mantis - Resin
Viewing Issue Advanced Details
407 minor always 09-28-05 00:00 11-30-05 14:42
ferg  
 
urgent  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.15  
0000407: chunked encoding for apache 1
RSN-453
(rep by Darren Chapman)


We've been having problems with chunked encoding requests (POSTs) using apache 1.3 and mod_caucho. Basically, what we're getting is a 411 response from the server that a content-length is required. This is with version 3.0.6 primarily, but it's also exhibited in 3.0.10.

Looking through the changelogs for mod_caucho on your website, I see that with 3.0.9, there was a fix for a very similar problem in Apache2:

o. Apache2 mod_caucho wasn't accepting chunked encoding (rep by Mandel AndrAcceas)

Was this fix not implemented for the apache 1 module? Does this problem not (or is it not known to) exist in 1.3? Specifically, we're using 1.3.27 and 1.3.33 with the same results. In order to assure that it's not another module causing this problem, we're removed mod_cgi, mod_rewrite and mod_proxy, the other most likely culprits.

I have seen that if I comment out the following code from src/c/plugin/apache/mod_caucho.c, I get a 200 OK response under 3.0.6:

     if ((retval = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR)))
         return retval;

Under 3.0.6, I find the same "if" statement in apache2/mod_caucho.c. Looking at the 3.0.10 version (after the fix described in the changelog above was implemented) that "if" statement no longer appears in apache2/mod_caucho.c, but is still there in apache1/mod_caucho.c. Could this be how (or at least part of how) the fix was implemented?

Notes
(0000458)
ferg   
09-28-05 00:00   
ap_setup_client_block needs to change to REQUEST_CHUNKED_DECHUNK.