Why are AsyncContext timeouts not called in a timely manner?
Issue
- Asynchronous servlets do not show proper timeouts after upgrading from EAP 6.0 to 6.1.
AsyncContext asyncContext = request.startAsync();
asyncContext.setTimeout(5000);
asyncContext.addListener(new AsyncListener());
-
In EAP 6.0, the asyncListener.onTimeout() method was called pretty precisely after 5 seconds. However, on EAP 6.1 it seems impossible to define an amount less than 10 seconds. Also any timeout that is not a multiple of 10 seconds is rounded up to the next 10-second step.
-
Is there any way to get this to be more reliable?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
