You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Filip Hanik - Dev Lists <de...@hanik.com> on 2008/10/15 23:44:54 UTC

Re: Data Truncated when proxied from Apache

use mod_proxy_http or mod_jk,

Filip

Stephen Nelson-Smith wrote:
> Hi,
>
> I have an application which parses XML.  It sits behind an Apache
> Httpd 2.2 server using mod_proxy_ajp.  I am finding that if I POST
> more than about 1600 chars, the POST gets truncated, and I get an XML
> parse error.
>
> Httpd logs show:
>
> [Tue Sep 30 19:40:27 2008] [debug] mod_proxy_ajp.c(206): proxy: got
> 1380 bytes of data
>
> And:
>
> [Tue Sep 30 19:40:27 2008] [debug] ajp_header.c(284):
> ajp_marshal_into_msgb: Header[3] [Content-Length] = [1615]
>
> Checking back over my logs, proxy has never "got" more than 1614 bytes of data.
>
> Does anyone have any idea what is cutting this off?  I am imagining
> there may be a setting somewhere which says: "Don't pass more than
> $value bytes of data".
>
> S.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_proxy_http v. mod_jk, was Re: Data Truncated when proxied from Apache

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert,

Robert Koberg wrote:
> On Oct 15, 2008, at 5:44 PM, Filip Hanik - Dev Lists wrote:
> 
>> use mod_proxy_http or mod_jk,
> 
> I have seen a few posts recommending mod_proxy_http a little bit over
> mod_jk. Why is that?

Note that mod_jk and mod_proxy_ajp fill the same role: they use the AJP
protocol to connect Apache httpd to Tomcat (or any AJP-compliant
application server). mod_proxy_http does the same thing, but uses the
HTTP protocol, and so has a few options missing (not exactly sure what
they are).

I chose mod_jk over mod_proxy_ajp for two reasons:

1. mod_jk has been around for years, and it was the only game in town
   when I got started.

2. I find that mod_jk is more configurable for complex deployments.
   I tried to switch to mod_proxy_ajp when we moved to Apache httpd
   2.2.x, but I had a hard time getting it to do what I wanted it
   to do, so I stuck with mod_jk.

Filip didn't explain his recommendation, but I believe Filip was
suggesting that mod_proxy_http was more robust than mod_proxy_ajp and
might not have the same problems. From my experience, mod_jk is very
robust and reliable.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkj4+ioACgkQ9CaO5/Lv0PAoyQCeL4He8BdVowbB90N9DnaAcvvq
EqsAn2a6PPwlYuxgwLqEbSVdyHR8rk8i
=CZZV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


mod_proxy_http v. mod_jk, was Re: Data Truncated when proxied from Apache

Posted by Robert Koberg <ro...@koberg.com>.
On Oct 15, 2008, at 5:44 PM, Filip Hanik - Dev Lists wrote:

> use mod_proxy_http or mod_jk,

I have seen a few posts recommending mod_proxy_http a little bit over  
mod_jk. Why is that?

I used mod_jk recently simply because it was on the tomcat site. I  
just assumed it was the default/best option. Maybe there should be a  
link on http://tomcat.apache.org/download-connectors.cgi indicating  
that you might want to look at mod_proxy_http saying something like it  
might meet your needs better.

best,
-Rob

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Data Truncated when proxied from Apache

Posted by Stephen Nelson-Smith <sa...@gmail.com>.
Hi Filip,

On Wed, Oct 15, 2008 at 10:44 PM, Filip Hanik - Dev Lists
<de...@hanik.com> wrote:
> use mod_proxy_http or mod_jk,

I am now.... but I don't understand why it behaved as it did - any idea?

<snip>

>> I have an application which parses XML.  It sits behind an Apache
>> Httpd 2.2 server using mod_proxy_ajp.  I am finding that if I POST
>> more than about 1600 chars, the POST gets truncated, and I get an XML
>> parse error.
>>
>> Httpd logs show:
>>
>> [Tue Sep 30 19:40:27 2008] [debug] mod_proxy_ajp.c(206): proxy: got
>> 1380 bytes of data
>>
>> And:
>>
>> [Tue Sep 30 19:40:27 2008] [debug] ajp_header.c(284):
>> ajp_marshal_into_msgb: Header[3] [Content-Length] = [1615]
>>
>> Checking back over my logs, proxy has never "got" more than 1614 bytes of
>> data.
>>
>> Does anyone have any idea what is cutting this off?  I am imagining
>> there may be a setting somewhere which says: "Don't pass more than
>> $value bytes of data".

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org