You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by wakeup <al...@euskalnet.net> on 2006/10/05 09:46:35 UTC
AXIS: tomcat always do http compression without watch min size
Hi,
I have an apache tomcat 5.5.17. In my server.xml file I have put
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
compression="on"
*compressionMinSize="2048000" *
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/plain,application/dime"
/>
It run sucessfull with normal html tomcat pages. But when I ask to axis 1.4
webservices it always compress the response althought it be less than 1kb.
Why axis don't respect compressionMinSize parameter?
Thanks
--
View this message in context: http://www.nabble.com/AXIS%3A-tomcat-always-do-http-compression-without-watch-min-size-tf2386947.html#a6654078
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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: AXIS: tomcat always do http compression without watch min size
Posted by wakeup <al...@euskalnet.net>.
Thanks but I don't want disable compress, because I want compress when the
lenght exceeds a limit.
In the client I can't disable response chuked?
Tim Funk wrote:
>
> you won't be able to disable the chunked encoding.
>
> But you can disable the compression by ensure the client does NOT send a
> "accept-encoding" header with the a value containing "gzip" or by using
> the noCompressionUserAgents, compressableMimeType attributes on the
> connector.
>
> -Tim
>
> wakeup wrote:
>> Thanks, I think you are right. Axis don't set content-leght because it is
>> sending response chunked. Where do I have to disable chunk in the axis
>> server o in the client?
>>
>> Thankss
>>
>>
>> Tim Funk wrote:
>>
>>> compressionMinSize only works with fixed file sizes. If axis is NOT
>>> setting the ContentLength before serving back results - then
>>> compressionMinSize can't be checked to see if compression can be done.
>>> And then compression will be done based on the client input headers.
>>>
>>> -Tim
>>>
>>> wakeup wrote:
>>>
>>>> Hi,
>>>>
>>>> I have an apache tomcat 5.5.17. In my server.xml file I have put
>>>>
>>>> <Connector port="8080" maxHttpHeaderSize="8192"
>>>> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>>>> enableLookups="false" redirectPort="8443" acceptCount="100"
>>>> connectionTimeout="20000" disableUploadTimeout="true"
>>>> compression="on"
>>>> *compressionMinSize="2048000" *
>>>> noCompressionUserAgents="gozilla, traviata"
>>>> compressableMimeType="text/html,text/xml,text/plain,application/dime"
>>>> />
>>>>
>>>> It run sucessfull with normal html tomcat pages. But when I ask to axis
>>>> 1.4
>>>> webservices it always compress the response althought it be less than
>>>> 1kb.
>>>> Why axis don't respect compressionMinSize parameter?
>>>> Thanks
>>>>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
--
View this message in context: http://www.nabble.com/AXIS%3A-tomcat-always-do-http-compression-without-watch-min-size-tf2386947.html#a6677693
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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: AXIS: tomcat always do http compression without watch min size
Posted by Tim Funk <fu...@joedog.org>.
you won't be able to disable the chunked encoding.
But you can disable the compression by ensure the client does NOT send a
"accept-encoding" header with the a value containing "gzip" or by using
the noCompressionUserAgents, compressableMimeType attributes on the
connector.
-Tim
wakeup wrote:
> Thanks, I think you are right. Axis don't set content-leght because it is
> sending response chunked. Where do I have to disable chunk in the axis
> server o in the client?
>
> Thankss
>
>
> Tim Funk wrote:
>
>> compressionMinSize only works with fixed file sizes. If axis is NOT
>> setting the ContentLength before serving back results - then
>> compressionMinSize can't be checked to see if compression can be done.
>> And then compression will be done based on the client input headers.
>>
>> -Tim
>>
>> wakeup wrote:
>>
>>> Hi,
>>>
>>> I have an apache tomcat 5.5.17. In my server.xml file I have put
>>>
>>> <Connector port="8080" maxHttpHeaderSize="8192"
>>> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>>> enableLookups="false" redirectPort="8443" acceptCount="100"
>>> connectionTimeout="20000" disableUploadTimeout="true"
>>> compression="on"
>>> *compressionMinSize="2048000" *
>>> noCompressionUserAgents="gozilla, traviata"
>>> compressableMimeType="text/html,text/xml,text/plain,application/dime"
>>> />
>>>
>>> It run sucessfull with normal html tomcat pages. But when I ask to axis
>>> 1.4
>>> webservices it always compress the response althought it be less than
>>> 1kb.
>>> Why axis don't respect compressionMinSize parameter?
>>> Thanks
>>>
---------------------------------------------------------------------
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: AXIS: tomcat always do http compression without watch min size
Posted by wakeup <al...@euskalnet.net>.
Thanks, I think you are right. Axis don't set content-leght because it is
sending response chunked. Where do I have to disable chunk in the axis
server o in the client?
Thankss
Tim Funk wrote:
>
> compressionMinSize only works with fixed file sizes. If axis is NOT
> setting the ContentLength before serving back results - then
> compressionMinSize can't be checked to see if compression can be done.
> And then compression will be done based on the client input headers.
>
> -Tim
>
> wakeup wrote:
>> Hi,
>>
>> I have an apache tomcat 5.5.17. In my server.xml file I have put
>>
>> <Connector port="8080" maxHttpHeaderSize="8192"
>> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>> enableLookups="false" redirectPort="8443" acceptCount="100"
>> connectionTimeout="20000" disableUploadTimeout="true"
>> compression="on"
>> *compressionMinSize="2048000" *
>> noCompressionUserAgents="gozilla, traviata"
>> compressableMimeType="text/html,text/xml,text/plain,application/dime"
>> />
>>
>> It run sucessfull with normal html tomcat pages. But when I ask to axis
>> 1.4
>> webservices it always compress the response althought it be less than
>> 1kb.
>> Why axis don't respect compressionMinSize parameter?
>> Thanks
>>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
--
View this message in context: http://www.nabble.com/AXIS%3A-tomcat-always-do-http-compression-without-watch-min-size-tf2386947.html#a6676089
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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: AXIS: tomcat always do http compression without watch min size
Posted by Tim Funk <fu...@joedog.org>.
compressionMinSize only works with fixed file sizes. If axis is NOT
setting the ContentLength before serving back results - then
compressionMinSize can't be checked to see if compression can be done.
And then compression will be done based on the client input headers.
-Tim
wakeup wrote:
> Hi,
>
> I have an apache tomcat 5.5.17. In my server.xml file I have put
>
> <Connector port="8080" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true"
> compression="on"
> *compressionMinSize="2048000" *
> noCompressionUserAgents="gozilla, traviata"
> compressableMimeType="text/html,text/xml,text/plain,application/dime"
> />
>
> It run sucessfull with normal html tomcat pages. But when I ask to axis 1.4
> webservices it always compress the response althought it be less than 1kb.
> Why axis don't respect compressionMinSize parameter?
> Thanks
>
---------------------------------------------------------------------
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: AXIS: tomcat always do http compression without watch min size
Posted by Peter Rossbach <pr...@objektpark.de>.
Which mime type send axis as responce?
Peter
Am 05.10.2006 um 09:46 schrieb wakeup:
>
> Hi,
>
> I have an apache tomcat 5.5.17. In my server.xml file I have put
>
> <Connector port="8080" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true"
> compression="on"
> *compressionMinSize="2048000" *
> noCompressionUserAgents="gozilla, traviata"
> compressableMimeType="text/html,text/xml,text/plain,application/dime"
> />
>
> It run sucessfull with normal html tomcat pages. But when I ask to
> axis 1.4
> webservices it always compress the response althought it be less
> than 1kb.
> Why axis don't respect compressionMinSize parameter?
> Thanks
> --
> View this message in context: http://www.nabble.com/AXIS%3A-tomcat-
> always-do-http-compression-without-watch-min-size-
> tf2386947.html#a6654078
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>