dev@grizzly.java.net

Re: parameters for ChunkedInputFilter

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Tue, 29 Nov 2011 12:22:14 -0800

On 11/29/11 11:27 AM, Shing Wai Chan wrote:
> Hi,
> I am planned to port a change on ChunkedInputFilter.java about trailer
> header from Tomcat.
> There is a configurable parameter to configure an internal buffer.
> In Tomcat 6, it put it as under a static variable which is
> configurable as system property.
> In Tomcat 7, it is configurable through xml and the necessary
> parameters are added to constructors of ChunkedInputFilter and
> *Processor.
>
> What is the best way to do this in Grizzly 1.9.x?
I would say it would probably be best to configure the ProcessorTask vs
using a system property.

Updating the ChunkedInputFilter and ProcessorTask shouldn't be an issue.
It probably also means exposing this configuration via the
SelectorThread and then passing the configuration through using
SelectorThread.configureProcessorTask().

Would need to also expose this in the Http interface so that this
attribute could be configured GF's domain.xml.
GrizzlyEmbeddedHttp would then need to take action on the new attribute.


>
> Shing Wai Chan