天天看點

jetty idle timeout expired:30000/30000 ms

報錯:

java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms 

 at org.eclipse.jetty.server.HttpConnection.blockingWrite(HttpConnection.java:449) 

 at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:389) 

 at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:638) 

 at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:199)

 at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:113) 

 at org.springframework.web.servlet.re

解決:

vi start.ini

#http.timeout=3000(注釋該行之後測試仍然有該報錯)

vi etc/jetty-http.xml(把30000ms改成1200000ms)

<Set name="idleTimeout"><Property name="http.timeout" default="1200000"/></Set>

本文轉自 guowang327 51CTO部落格,原文連結:http://blog.51cto.com/guowang327/1760784,如需轉載請自行聯系原作者

繼續閱讀