RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
Ilya, > > On 1/6/2011 4:17 PM, ilya goberman wrote: > > OK. All I wanted to say is that disabling keepAlive across the board > > is not necessary. > > Nobody is suggesting that. > > > If keepAlive can be applies to a single response > > (and to be ho

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
HA1 > > Ilya, > > On 1/6/2011 12:27 PM, ilya goberman wrote: > > I think what was suggested before is to control this behavior by > > setting "keepAlive" setting. I would not think this is the right > > way. > > Er, what's the difference betwee

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
d several times, now: > > On 1/5/2011 12:54 PM, Mark Thomas wrote: > > As I said, an enhancement request to optionally use a non-chunked > > response when keep-alive is disabled is - in my view - a reasonable > > one. > > On 1/5/2011 4:29 PM, ilya goberman wrot

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
This is getting philosophical. "spec-respectful" does not mean it has to support only one valid protocol out of 2. If both protocol A (chunked-encoding) and B (no chunked encoding) is allowed, why not give an ability to use whatever user prefers. As far as "sputnik" example is concerned, I hav

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
tion: close" is not set, keep alive functionality is preserved. Any objections? > Date: Wed, 5 Jan 2011 17:54:53 + > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > >

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
OK, it is fair, thanks. > Date: Wed, 5 Jan 2011 17:54:53 + > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > On 05/01/2011 17:43, ilya goberman wrote: > > > > M

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
2011 16:38:20 + > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > On 05/01/2011 15:29, ilya goberman wrote: > > > > Mark, overhead of chunked encoding can be significant

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
; > What is the overhead of ending a tcp connection and creating a new one? > Because you are removing the benefits of keep-alive here. > Compare that with sending 6 extra bytes in a IP-packet that you are sending > anyway. > > Ronald. > > >

need guidance on threading model/ functionality of CometProcessor

2011-01-05 Thread ilya goberman
Hi, I am trying to use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to implement Comet streaming to browsers and mobile devices (using Tomcat org.apache.catalina.comet.CometProcessor). The application opens a persistent Comet connection to receive data from the server. Server

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
ocol > connector. > > On 05/01/2011 05:04, ilya goberman wrote: > > > > Hi, > > I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to > > implement Comet streaming to browsers and mobile devices. > > > > I would like to disable HT

How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-04 Thread ilya goberman
Hi, I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to implement Comet streaming to browsers and mobile devices. I would like to disable HTTP response chunked encoding to reduce bandwidth. The response will have header "Connection: close" with "Content-Length" header omitted