mks is correct

you can set MaxPostSize to a value < =2097152 for HttpConnector in 
$TOMCAT_HOME/conf/server.xml
http://spdn.ifas.ufl.edu/docs/config/http.html

and yes your connector will need to support HTTP 1.1 support for 
chunked-encoding
http://spdn.ifas.ufl.edu/docs/config/http.html#Connector%20Comparison

Mit freundlichen Grüßen
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Thu, 11 Jun 2009 22:58:02 +0200
> From: tomcat-us...@list-post.mks-mail.de
> To: users@tomcat.apache.org
> Subject: Re: chunked encoding
> 
> Anthony J. Biacco:
> 
> > The only thing that makes me question this, is that if I query the
> > servlet directly on port 8080 instead of through mod_jk/ajp, it
> > doesn't get chunked. Well, I don’t get a transfer-encoding header I
> > should say. But I don’t get a content length through there either.
> 
> And which HTTP version is used?
> 
> > But according to the CDN, without a content-length
> > header, the caching won't happen. I wonder if I downgrade the
> > connection to http 1.0 if it applies to every hop? The way the CDN
> > works is that, a request is made to it by the client, if it has it in
> > its cache, it serves it to the client, if not, it requests the file
> > from the origin server (my web server), I'm assuming by some proxy
> > mechanism. So if I downgrade to 1.0, will that apply to the
> > connection from the client to the CDN, the CDN to me, or both?
> 
> I don't know. But you could use a network sniffer and check.
> 
> > I tested with a >8K jsp and did get it chunked. Do you happen to know
> > the parameter for changing the buffer size? Perhaps I can increase it
> > to a number representing the largest length of my servlet content.
> > Which isn't too big, maybe 20K.
> 
> You could try
> javax.servlet.ServletResponse#setBufferSize
> http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.html#setBufferSize%28int%29
> 
> There may be even a configuration parameter to change Tomcat's default
> buffer size globally. But I don't know if there really is one and if so,
> which (and I'm too lazy too check atm).
> 
> -- 
> Regards
>   mks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Reply via email to