452188 Delay dispatch until content optimisation

Make delay the default
This commit is contained in:
Greg Wilkins 2014-11-21 10:02:24 +11:00
parent 69daa8d76d
commit 8e9e29f887
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@
<Set name="sendServerVersion"><Property name="jetty.send.server.version" default="true" /></Set>
<Set name="sendDateHeader"><Property name="jetty.send.date.header" default="false" /></Set>
<Set name="headerCacheSize">512</Set>
<Set name="delayDispatchOnContent"><Property name="jetty.delayDispatchOnContent" default="false"/></Set>
<Set name="delayDispatchOnContent"><Property name="jetty.delayDispatchOnContent" default="true"/></Set>
<!-- Uncomment to enable handling of X-Forwarded- style headers
<Call name="addCustomizer">
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>

View File

@ -46,4 +46,4 @@ jetty.dump.start=false
# Dump the state of the Jetty server, before stop
jetty.dump.stop=false
# Enable delayed dispatch optimisation
jetty.delayDispatchOnContent=false
jetty.delayDispatchOnContent=true

View File

@ -53,7 +53,7 @@ public class HttpConfiguration
private boolean _sendServerVersion = true; //send Server: header
private boolean _sendXPoweredBy = false; //send X-Powered-By: header
private boolean _sendDateHeader = true; //send Date: header
private boolean _delayDispatchOnContent = false; // Don't dispatch until content arrives
private boolean _delayDispatchOnContent = true; // Don't dispatch until content arrives
/* ------------------------------------------------------------ */