[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Change headerBufferSize via config
|
BC,
You need to use the Get element to get the server from the context
and then get the connector from the server.... hmmm but I don't
think the XML has the syntax needed to look into an array to do the
set.
Tell us a bit more about your environment... is this embedded code?
It might be that you can write a context listener that changes this
in code.
regards
bc Wong wrote:
> My app (which I can't modify) uses Jetty. The code creates its own
> SelectChannelConnector. And I want to increase its headerBufferSize from the
> default to 8K using a configuration.
>
> So I created a jetty-web.xml in the WEB-INF directory, following examples on
> the web. It doesn't work. And I feel that this is making a new Connector,
> rather than changing the default headerBufferSize. How do I change the
> headerBufferSize via configuration?
>
> <?xml version="1.0"?>
> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
> "http://jetty.mortbay.org/configure.dtd">
> <Configure id="Server" class="org.mortbay.jetty.webapp.WebAppContext">
> <Call name="addConnector">
> <Arg>
> <New class="org.mortbay.jetty.nio.SelectChannelConnector">
> <Set name="headerBufferSize">8192</Set>
> </New>
> </Arg>
> </Call>
> </Configure>
>
> Cheers,
> bc
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users