Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14748

Hard-coded timeout for asynchronous HTTP requests - add async context timeout undertow option

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Web (Undertow)
    • None
    • Undefined

      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;
      
      

      This issue is being handled in Undertow side already via UNDERTOW-1870. But we also need to add the configuration in WildFly and follow the RFE process to have this config available for users.

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: