Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Http Timeout Config Not Working

Avatar

Avatar
Springboard
Level 3
jkpanera
Level 3

Likes

18 likes

Total Posts

107 posts

Correct Reply

2 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Springboard
Level 3
jkpanera
Level 3

Likes

18 likes

Total Posts

107 posts

Correct Reply

2 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile
jkpanera
Level 3

02-04-2019

Hi,

I'm attempting to change the http timeout for my local AEM instance. I made the following change in the OSGI console:

Screen Shot 2019-04-02 at 22.38.48.png

I verified in

/opt/aem/publish/crx-quickstart/launchpad/config/org/apache/felix/http.config

that it has indeed changed:

Screen Shot 2019-04-02 at 22.47.42.png

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:

Screen Shot 2019-04-02 at 22.48.33.png

Any help?