1. 26 Oct, 2015 5 commits
  2. 22 Oct, 2015 1 commit
  3. 21 Oct, 2015 4 commits
  4. 20 Oct, 2015 1 commit
  5. 19 Oct, 2015 3 commits
  6. 18 Oct, 2015 10 commits
  7. 17 Oct, 2015 7 commits
  8. 16 Oct, 2015 5 commits
  9. 15 Oct, 2015 4 commits
    • Matthew Holt's avatar
      OncePerServerBlock may now return an error · 691204ce
      Matthew Holt authored
      691204ce
    • Matthew Holt's avatar
      Merge branch 'master' into configfix · a518049f
      Matthew Holt authored
      a518049f
    • Matthew Holt's avatar
      First use of OncePerServerBlock in a Setup function · 35e309cf
      Matthew Holt authored
      startup and shutdown commands should only be executed once per appearance in the Caddyfile (naturally meaning once per server block).
      
      Notice that we support multiple occurrences of startup and shutdown in the same server block by building the callback array incrementally as we parse the Caddyfile, then we append all the callbacks all at once. Quite literally, the OncePerServerBlock function executes only once per server block!
      35e309cf
    • Matthew Holt's avatar
      Don't share sync.Once with all directives · e0fdddc7
      Matthew Holt authored
      If each server block had only one sync.Once then all directives would refer to it and only the first directive would be able to use it! So this commit changes it to a map of sync.Once instances, keyed by directive. So by creating a new map for every server block, each directive in that block can get its own sync.Once which is exactly what is needed. They won't step on each other this way.
      e0fdddc7