Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1870

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 2.0.28.Final
    • Servlet
    • None

    Description

      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;
      
      

      Attachments

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              ibrahim.khalili Ibrahim Khalili (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: