I am migrating from jetty7.6 to jetty-9.2. I am seeing that default value of idletimeout for jetty connections is reduced 10 times.
In jetty-7.6
<Set name="maxIdleTime">300000</Set>
In jetty-9.2:
<Set name="idleTimeout"><Property name="http.timeout" default="30000"/></Set>
Why So ?
And because of this I am continuously getting below exception :
WARN:oejs.HttpChannel:qtp607635164-14195: Commit failed
java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms
at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:156)
at org.eclipse.jetty.io.IdleTimeout$1.run(IdleTimeout.java:50)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)..........
Thanks,
–
–
Using Jetty 9.4 and HTTPS, the above solution doesn't work. To fix this I found an undocumented setting that doesn't appear in the .ini files:
jetty.ssl.idleTimeout=180000
Add that to your Jetty settings. start.d/<whatever>.ini
or start.ini
.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0
with attribution required.
rev 2019.1.25.32728