| -----Original Message-----
| What about that patch which allways set ContentLength
| but try to get others datas only in contentLength is set
| and not -1 ....
| 
| 
| --- Ajp13.java.orig   Mon Sep 17 11:16:05 2001
| +++ Ajp13.java        Mon Sep 17 11:16:30 2001
| @@ -411,8 +411,8 @@
|       MessageBytes clB=headers.getValue("content-length");
|          int contentLength = (clB==null) ? -1 : clB.getInt();
|       if( dL > 0 ) d("Content-Length: " + contentLength );
| -     if(contentLength != 0) {
| -         req.setContentLength( contentLength );
| +        req.setContentLength( contentLength );
| +     if(contentLength != 0 && contentLength != -1) {
|           /* Read present data */
|           int err = receive(inBuf);
|              if(err < 0) {

CL=-1 means the request is chunked, and we must read until
we get an end of stream, so this patch would break that.

Definitely the changes require upgrading jk when Tomcat
is upgraded to 3.3.. there's no way around that.

Keith

Reply via email to