enabled delayed dispatch by default
This commit is contained in:
parent
1cb0449be3
commit
e093041040
|
@ -86,7 +86,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="delayDispatchUntilContent"><Property name="jetty.delayDispatchUntilContent" default="false"/></Set>
|
||||
<Set name="delayDispatchUntilContent"><Property name="jetty.delayDispatchUntilContent" default="true"/></Set>
|
||||
<!-- Uncomment to enable handling of X-Forwarded- style headers
|
||||
<Call name="addCustomizer">
|
||||
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
|
||||
|
|
|
@ -25,25 +25,36 @@ etc/jetty.xml
|
|||
##
|
||||
# minimum number of threads
|
||||
threads.min=10
|
||||
|
||||
# maximum number of threads
|
||||
threads.max=200
|
||||
|
||||
# thread idle timeout in milliseconds
|
||||
threads.timeout=60000
|
||||
|
||||
# buffer size for output
|
||||
jetty.output.buffer.size=32768
|
||||
|
||||
# request header buffer size
|
||||
jetty.request.header.size=8192
|
||||
|
||||
# response header buffer size
|
||||
jetty.response.header.size=8192
|
||||
|
||||
# should jetty send the server version header?
|
||||
jetty.send.server.version=true
|
||||
|
||||
# should jetty send the date header?
|
||||
jetty.send.date.header=false
|
||||
|
||||
# What host to listen on (leave commented to listen on all interfaces)
|
||||
#jetty.host=myhost.com
|
||||
|
||||
# Enable delayed dispatch optimisation
|
||||
jetty.delayDispatchUntilContent=true
|
||||
|
||||
# Dump the state of the Jetty server, components, and webapps after startup
|
||||
jetty.dump.start=false
|
||||
|
||||
# Dump the state of the Jetty server, before stop
|
||||
jetty.dump.stop=false
|
||||
# Enable delayed dispatch optimisation
|
||||
jetty.delayDispatchUntilContent=false
|
||||
|
|
|
@ -222,7 +222,7 @@ public class HttpConfiguration
|
|||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @param delay if true, delay the application dispatch until content is available
|
||||
* @param delay if true, delay the application dispatch until content is available (default false)
|
||||
*/
|
||||
public void setDelayDispatchUntilContent(boolean delay)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue