1. 26 Apr, 2017 2 commits
  2. 25 Apr, 2017 2 commits
  3. 23 Apr, 2017 1 commit
  4. 22 Apr, 2017 3 commits
  5. 21 Apr, 2017 3 commits
  6. 20 Apr, 2017 3 commits
  7. 19 Apr, 2017 2 commits
  8. 18 Apr, 2017 10 commits
  9. 17 Apr, 2017 4 commits
  10. 16 Apr, 2017 2 commits
  11. 15 Apr, 2017 2 commits
  12. 14 Apr, 2017 2 commits
  13. 08 Apr, 2017 2 commits
  14. 03 Apr, 2017 1 commit
  15. 02 Apr, 2017 1 commit
    • Angel Santiago's avatar
      proxy: Cleanly shutdown health checks on restart (#1524) · 59bf71c2
      Angel Santiago authored
      * Add a shutdown function and context to staticUpstream so that running goroutines can be cancelled. Add a GetShutdownFunc to Upstream interface to expose the shutdown function to the caddy Controller for performing it on restarts.
      
      * Make fakeUpstream implement new Upstream methods.
      
      Implement new Upstream method for fakeWSUpstream as well.
      
      * Rename GetShutdownFunc to Stop(). Add a waitgroup to the staticUpstream for controlling individual object's goroutines. Add the Stop function to OnRestart and OnShutdown. Add tests for checking to see if healthchecks continue hitting a backend server after stop has been called.
      
      * Go back to using a stop channel since the context adds no additional benefit.
      Only register stop function for onShutdown since it's called as part of restart.
      
      * Remove assignment to atomic value
      
      * Incrementing WaitGroup outside of goroutine to avoid race condition. Loading atomic values in test.
      
      * Linting: change counter to just use the default zero value instead of setting it
      
      * Clarify Stop method comments, add comments to stop channel and waitgroup and remove out of date comment about handling stopping the proxy. Stop the ticker when the stop signal is sent
      59bf71c2