Hi,
I'm attempting to change the http timeout for my local AEM instance. I made the following change in the OSGI console:
I verified in
/opt/aem/publish/crx-quickstart/launchpad/config/org/apache/felix/http.config
that it has indeed changed:
I am testing it using the following servlet:
@Slf4j
@Component(
immediate = true,
service = Servlet.class,
property = {
"sling.servlet.paths=/bin/test/foo",
"sling.servlet.methods=get"
},
configurationPid = "TestServlet")
public class TestServlet extends SlingSafeMethodsServlet {
@Override
protected void doGet(@Nonnull SlingHttpServletRequest request,
@Nonnull SlingHttpServletResponse response) {
try {
//sleep for 10 seconds
Thread.sleep(10000);
response.getWriter().write("<html>Should have timed out.</html>");
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
But it seems not to be working as it should have timed out but didn't:
Any help?