php-fpm-exporter/cmd
Kieren Evans ea4a929fa9
fix: allow 10 seconds to shutdown, fixing shutdown error (#204)
* Allow 15 seconds to shut down

v2.0.0 and above crashes with message "Error during shutdowncontext deadline exceeded" and exit code 1
upon SIGINT being received.

v1.2.1 seems to be unaffected.

* Add bats test

* Reduce to 10 seconds, define directly

Co-Authored-By: andytson-inviqa <andytson-inviqa@users.noreply.github.com>

* style: gofmt -s

* chore: bump golang to 1.17 and fix golangci

Co-authored-by: andytson-inviqa <andytson-inviqa@users.noreply.github.com>
Co-authored-by: Enrico Stahn <enrico.stahn@gmail.com>
2022-02-09 09:45:36 +11:00
..
get.go More error checks thanks to errcheck 2018-02-25 21:45:46 +11:00
root.go refactor: Go 1.11 and other refactorings (#36) 2018-12-10 21:32:28 +11:00
server.go fix: allow 10 seconds to shutdown, fixing shutdown error (#204) 2022-02-09 09:45:36 +11:00
version.go Code-cleanup with goimports 2018-02-25 10:08:12 +11:00