"lior grinfeld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > i am trying to find out where and which attribute i can use to do transfer > data as chunk and determined the chunk size of a response. > i saw it is supported, i read it in the "Apache Tomcat Configuration > Reference - The HTTP Connector", but where can i find more details? >
Section 5.1 of the Servlet spec might be a start :). Setting the bufferSize on the response (assuming that this is a Servlet, not a JSP) should make it close to the chunk size (assuming you don't set it too small, like under 8Kb). There isn't really a practical way to guarantee the chunk size. You would have to count bytes sent, and call response.flushBuffer at the magic number to have any chance of controlling the chunk size. However, this should be a waste of time, since any working HTTP/1.1 client would know how to parse the chunk size sent in the response body. > thanks > > Lior > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]