1. 23 Jun, 2018 1 commit
  2. 22 Jun, 2018 2 commits
  3. 21 Jun, 2018 5 commits
  4. 20 Jun, 2018 2 commits
  5. 19 Jun, 2018 3 commits
    • Rainer Jung's avatar
      mod_cache: Per RFC 7234 section 5.3 an invalid · 60087a70
      Rainer Jung authored
      Expires header value must be interpreted as a
      time in the past. So apply the logic concerning
      "CacheStoreExpired" and "max-age" and "s-maxage"
      handling, which we are already using for a valid
      Expires header containing a time in the past,
      also to the case of an invalid Expires header.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1833876 13f79535-47bb-0310-9956-ffa450edef68
      60087a70
    • Luca Toscano's avatar
      mod_ratelimit: fix behavior with proxied content · c02660e7
      Luca Toscano authored
      mod_ratelimit works by splitting data in "chunks"
      to send to the client, sleeping a predefined amount
      of time between them (200ms). So for example,
      a rate-limit 40 value would correspond to a chunk size
      of 8192 bytes, flushed to the client every 200ms.
      
      The idea works fine when httpd directly serves the
      content, since the filter will be called once with
      a single bucket brigade. In the context of a proxied
      content though the filter is likely to be called multiple
      times, with a bucket brigade size that corresponds to
      the maximum allowed buffer size. If this value is lower
      or higher than the chunk size, the filter will not
      properly rate limit the data going to the client.
      
      This patch solves the problem with two fix:
      1) do_sleep is now stored in the ctx context struct,
         so if the filter is invoked multiple times it
         will still sleep when needed. For example, say
         that the chunk_size is 8192 and the bucket brigate
         len is 10240: the filter will flush 8192 bytes
         on the first invocation, sleep 200ms, flush the
         remaining bytes and then finish. The next invocation
         will do the same, clearly not leading to the
         correct "sleeping pattern".
      2) The example above highlights also another issue:
         mod_ratelimit should  flush only chunk_size bytes
         at the time (I am now excluding the burst calculation
         from the picture), and buffer between invocations
         unless the brigade contains EOS.
      
      The change has been tested with various scenarios and
      it looks working as expected, but of course more
      feedback/testing is welcome.
      
      The original patch was written by me and then Yann
      refactored the code to be more precise and efficient,
      basically transforming an axe in a wonderful Japanese
      katana sword, so credits to him for this work.
      
      PR: 62362
      
      
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1833875 13f79535-47bb-0310-9956-ffa450edef68
      c02660e7
    • Eric Covener's avatar
      add server_rec to log.c fatal startup errors · 40530b34
      Eric Covener authored
      Not strictly necessary for trunk, but in 2.4.x if the main ErrorLog is
      using syslog, these messages are lost.  In trunk, the low-level logging
      routines reach up and find the syslog provider when no server_rec is provided
      but that backport is stalled.
      
      
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1833827 13f79535-47bb-0310-9956-ffa450edef68
      40530b34
  6. 15 Jun, 2018 3 commits
  7. 13 Jun, 2018 1 commit
  8. 12 Jun, 2018 4 commits
  9. 11 Jun, 2018 1 commit
  10. 09 Jun, 2018 2 commits
  11. 07 Jun, 2018 1 commit
  12. 06 Jun, 2018 5 commits
  13. 05 Jun, 2018 4 commits
  14. 04 Jun, 2018 2 commits
  15. 31 May, 2018 3 commits
  16. 29 May, 2018 1 commit