tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonid Riaboshtan <leonid.riabosh...@morqua.ru>
Subject tomcat gzipping and transfer-encoding:chunked
Date Wed, 07 Apr 2010 08:07:29 GMT
Greetings, community!

I'm myself not a tomcat user, so I can't provide you with valid tomcat
version or provide some details, but I use service which is hosted on tomcat
related to it's response headers. Here's headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 07 Apr 2010 07:32:57 GMT

If it gives any details I will feel happy! So my problem is that sometimes
(like 30% cases) services sends partial response to me. And if to check
actual response size it's even bigger then normal one. Both responses are in
attachments. My application that actually does HTTP protocol handling founds
both responses correct. It begins with chunk size and ends with 0 chunk
followed by two \r\n which is meant to be the end of the transmission, am I
wrong somewhere here?

Btw, I finally setted tomcat on my work machine and done some tests with
dummy jsp application which just simply returns XML i expect to get. And
what do you think?! It happens here too! So now I can give some details:
Tomcat version 6.0.26 running on 32bit Windows XP system;
traffic seem to go through squid proxy of 2.x version (don't think it's
proxy related issue cuz I expirience same behavoir with no proxy at all)
with some http 1.1 suppor patch installed;

Looking through logs of tomcat I can't seem to find anything valuable at
all, not an access log even :)

Attachments overview:
localNormalResponse.dat - normal response of my local webserver
localPartialResponse.dat - here's partial version of my local webserver
response
remoteNormalResponse.dat - remote services's normal response
remotePartialResponse.dat - remote services's partial response

Files contains body(gzipped body) of html responses with no headers, but
headers are like the same as the one I showed above and I don't think it's
something to do with request headers. If I'm mistaken let me know. Maybe
it's somekind of known tomcat issue with known fix? What is puzzled me most
is that the partial response is bigger then normal!

Not sure if I can actually send attachments here, so here's a link with'em
(packed with zip archive):
http://rapidshare.com/files/372966100/responses.zip.html

Hope to find some light to shine on this problem :)
Thanks in advance!
WBR, Leonid Riaboshtan

Mime
View raw message