title: What is the difference between idle-timeout and request timeout in akka http configuration?
body: <p>I went to the documentation and found out these
     # The time after which an idle connection will be automatically closed.
      # Set to <code>infinite</code> to completely disable idle connection timeouts.
      idle-timeout = 10 s</p>
  
  <pre><code># Defines the default time period within which the application has to
  # produce an HttpResponse for any given HttpRequest it received.
  # The timeout begins to run when the *end* of the request has been
  # received, so even potentially long uploads can have a short timeout.
  # Set to `infinite` to completely disable request timeout checking.
  #
  # If this setting is not `infinite` the HTTP server layer attaches a
  # `Timeout-Access` header to the request, which enables programmatic
  # customization of the timeout period and timeout response for each
  # request individually.
  request-timeout = 20 s
  </code></pre>
  
  <p>I have a scenario where my server takes more than 10 seconds to process a response but before sending the HTTPResponse the TCP connection between the client and server is timed out because of <strong>idle timeout</strong>.</p>
  
  <p>Although the connection is idle at the moment but the request is still processing.</p>
  
  <p>I thought this was the responsibility of response timeout?</p>
  
  <p>Can anyone in this context explain me the difference between idle-timeout and response-timeout?</p>