Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Change headerBufferSize via config

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


Back to the top