Hello Aaron,

you can have a look at the documentation page for the connectors (http://www.restlet.org/documentation/1.1/connectors#server_connectors). The parameter is set on the server connector, not the application or the component.

Server server = new Server(Protocol.HTTP, 8182, restlet);
server.getContext().getParameters().add("useForwardedForHeader", "true");
component.getServers().add(server);


>2) What's the best way to do a sanity check to confirm that Jetty is indeed using this new value for requestBufferSize?
Are there any Jetty specialist ?


Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org <http://www.restlet.org/>
Noelios Technologies ~ Co-founder ~ http://www.noelios.com <http://www.noelios.com/>

Hi Restlet Community,

I'm using the Jetty Connector with Restlet 1.1-M4 and I'd like to change the
default value for the requestBufferSize setting.

If I understand the documentation correctly, I can do this in the constructor of
my Application...

getContext().getParameters().add("requestBufferSize", ""+(512*1024));

or just before starting my component...

component.getContext().getParameters().add("requestBufferSize", ""+(512*1024));

I found the parameter name on this page:

http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/jetty/JettyServerHelper

My questions are:

1) Is this the correct way for me to do this?

2) What's the best way to do a sanity check to confirm that Jetty is indeed
using this new value for requestBufferSize?

Many thanks in advance for any insights!


Best wishes,
Aaron

Reply via email to