You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Sven Köhler <sk...@upb.de> on 2006/11/12 02:46:52 UTC

AJP flush packets?

Hi,

i see, you're developing Tomcat 6.0.

Will Tomcat 6.0 send flush packets, when the flush()-method of the
OutputStreams or the Writers are called?

It's something really needed by mod_proxy_ajp, mod_jk, and so on to
property transport flushes to.


Greetings,
  Sven


Re: AJP flush packets?

Posted by Rainer Jung <ra...@kippdata.de>.
This has been done on October 29th in revision r468936 fpr TC 5.5 too.

It should be part of 5.5.21, which hat not been scheduled yet.

Regards,

Rainer

Sven Köhler wrote:
> Mladen Turk schrieb:
>> Sven Köhler wrote:
>>> Hi,
>>>
>>> i see, you're developing Tomcat 6.0.
>>>
>>> Will Tomcat 6.0 send flush packets, when the flush()-method of the
>>> OutputStreams or the Writers are called?
>> Yes. It's done in a way that is backward compatible.
>> When out.flush() is called an empty data packet is sent.
> 
> I have one more question:
> 
> Is this going to be "backported" to Tomcat 5.5?
> 
> 
> 
> Regards,
>   Sven
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: AJP flush packets?

Posted by Sven Köhler <sk...@upb.de>.
Mladen Turk schrieb:
> Sven Köhler wrote:
>> Hi,
>>
>> i see, you're developing Tomcat 6.0.
>>
>> Will Tomcat 6.0 send flush packets, when the flush()-method of the
>> OutputStreams or the Writers are called?
> 
> Yes. It's done in a way that is backward compatible.
> When out.flush() is called an empty data packet is sent.

I have one more question:

Is this going to be "backported" to Tomcat 5.5?



Regards,
  Sven


Re: AJP flush packets?

Posted by Mladen Turk <mt...@apache.org>.
Sven Köhler wrote:
>>> i see, you're developing Tomcat 6.0.
>>>
>>> Will Tomcat 6.0 send flush packets, when the flush()-method of the
>>> OutputStreams or the Writers are called?
>> Yes. It's done in a way that is backward compatible.
>> When out.flush() is called an empty data packet is sent.
> 
> Did it really need to be done like that? :-(
>

Not really, but in that case we would need to
extend the AJP protocol with something that would
notify the mod_jk/mod_proxy_ajp that explicit flush()
was requested.
That would of course break any mod_jk/mod_proxy not
having those extensions.
With empty packet the previous versions will simply
write 0 bytes to the client, while 1.2.20 and up
will call the web server flush.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: AJP flush packets?

Posted by Rainer Jung <ra...@kippdata.de>.
Hi,

follow the list. I expect, that we will prepare 1.2.20 for release
during this month.

Regards,

Rainer

Sven Köhler schrieb:
>>> i see, you're developing Tomcat 6.0.
>>>
>>> Will Tomcat 6.0 send flush packets, when the flush()-method of the
>>> OutputStreams or the Writers are called?
>> Yes. It's done in a way that is backward compatible.
>> When out.flush() is called an empty data packet is sent.
> 
> Did it really need to be done like that? :-(
> 
> Well, not matter how, but it was done, so it's a reason to be happy :-)
> 
>>> It's something really needed by mod_proxy_ajp, mod_jk, and so on to
>>> property transport flushes to.
>> The implementation is in the SVN both for mod_jk
>> and mod_proxy_ajp. You will have to wait for the
>> next release (mod_jk 1.2.20) if you don't wish to
>> use the SVN builds.
> 
> Thanks for the hints! So i will wait for mod_jk 1.2.20.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: AJP flush packets?

Posted by Sven Köhler <sk...@upb.de>.
>> i see, you're developing Tomcat 6.0.
>>
>> Will Tomcat 6.0 send flush packets, when the flush()-method of the
>> OutputStreams or the Writers are called?
> 
> Yes. It's done in a way that is backward compatible.
> When out.flush() is called an empty data packet is sent.

Did it really need to be done like that? :-(

Well, not matter how, but it was done, so it's a reason to be happy :-)

>> It's something really needed by mod_proxy_ajp, mod_jk, and so on to
>> property transport flushes to.
> 
> The implementation is in the SVN both for mod_jk
> and mod_proxy_ajp. You will have to wait for the
> next release (mod_jk 1.2.20) if you don't wish to
> use the SVN builds.

Thanks for the hints! So i will wait for mod_jk 1.2.20.


Re: AJP flush packets?

Posted by Mladen Turk <mt...@apache.org>.
Sven Köhler wrote:
> Hi,
> 
> i see, you're developing Tomcat 6.0.
> 
> Will Tomcat 6.0 send flush packets, when the flush()-method of the
> OutputStreams or the Writers are called?
> 

Yes. It's done in a way that is backward compatible.
When out.flush() is called an empty data packet is sent.

> It's something really needed by mod_proxy_ajp, mod_jk, and so on to
> property transport flushes to.
> 

The implementation is in the SVN both for mod_jk
and mod_proxy_ajp. You will have to wait for the
next release (mod_jk 1.2.20) if you don't wish to
use the SVN builds.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org