-
Feature Request
-
Resolution: Done
-
Major
-
2.0.28.Final
Currently there is no way to configure the timeout for asynchronous HTTP request as the value is hard-coded in the AsyncContextImpl class:
public class AsyncContextImpl implements AsyncContext { private final List<BoundAsyncListener> asyncListeners = new CopyOnWriteArrayList<>(); private final HttpServerExchange exchange; private final ServletRequest servletRequest; private final ServletResponse servletResponse; private final TimeoutTask timeoutTask = new TimeoutTask(); private final ServletRequestContext servletRequestContext; private final boolean requestSupplied; private AsyncContextImpl previousAsyncContext;//the previous async context //todo: make default configurable private volatile long timeout = 30000; private volatile XnioExecutor.Key timeoutKey;
- relates to
-
WFLY-14748 Hard-coded timeout for asynchronous HTTP requests - add async context timeout undertow option
- Pull Request Sent
-
UNDERTOW-2526 DeploymentInfo contains typo in method names dealing with async timeout
- Resolved