Skip to content

Commit e22f0c3

Browse files
committed
Revert "Increase jetty maxIdleTime"
This reverts commit d0d626e.
1 parent c9dd137 commit e22f0c3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

dd-java-agent/instrumentation/servlet/request-3/src/test/groovy/JettyServlet3Test.groovy

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ abstract class JettyServlet3Test extends AbstractServlet3Test<Server, ServletCon
5050
JettyServer() {
5151
server.connectors.each {
5252
it.setHost('localhost')
53-
// Set high idle timeout to avoid SocketClosed on JettyServlet3ServeFromAsyncTimeout, JettyServlet3TestAsyncDispatchOnAsyncTimeout in CI.
54-
def methods = it.getClass().getDeclaredMethods().collect { it.name }.toSet()
55-
if (methods.contains("setMaxIdleTime")) {
56-
// Deprecated method, not available in newer versions.
57-
it.setMaxIdleTime(30000)
58-
} else {
59-
it.setIdleTimeout(30000L)
60-
}
6153
}
6254

6355
ServletContextHandler servletContext = new ServletContextHandler(null, "/$context", ServletContextHandler.SESSIONS)

0 commit comments

Comments
 (0)