1. 15 Oct, 2015 2 commits
    • 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
    • Matthew Holt's avatar
      Epic revert of 0ac8bf58 and adding OncePerServerBlock · 0c07f7ad
      Matthew Holt authored
      Turns out having each server block share a single server.Config during initialization when the Setup functions are being called was a bad idea. Sure, startup and shutdown functions were only executed once, but they had no idea what their hostname or port was. So here we revert to the old way of doing things where Setup may be called multiple times per server block (once per host associated with the block, to be precise), but the Setup functions now know their host and port since the config belongs to exactly one virtualHost. To have something happen just once per server block, use OncePerServerBlock, a new function available on each Controller.
      0c07f7ad
  2. 13 Oct, 2015 3 commits
  3. 11 Oct, 2015 4 commits
  4. 10 Oct, 2015 1 commit
  5. 09 Oct, 2015 3 commits
  6. 08 Oct, 2015 1 commit
  7. 07 Oct, 2015 2 commits
  8. 01 Oct, 2015 3 commits
  9. 30 Sep, 2015 2 commits
  10. 29 Sep, 2015 1 commit
  11. 28 Sep, 2015 5 commits
  12. 25 Sep, 2015 3 commits
  13. 24 Sep, 2015 3 commits
  14. 23 Sep, 2015 1 commit
  15. 22 Sep, 2015 1 commit
  16. 20 Sep, 2015 5 commits