restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
899 stars 139 forks source link

fix: shutdown gracefully on TERM or INT signals #273

Closed ae-govau closed 5 months ago

ae-govau commented 5 months ago

This allows server listen resources to be cleaned up appropriately.

What is the purpose of this change? What does it change?

Was the change discussed in an issue or in the forum before?

This is split from a different PR, PR #272.

Checklist

ae-govau commented 5 months ago

Oh, I didn't notice that the tests are failing, the must be fixed before we can merge the PR.

Thanks, I'll look at today. Looks like it's the new test that I added which is failing. It's passing locally for me, so I'll have dig around to see if I can figure out why it's failing in the automation. I wonder if the test env doesn't allow a test to connect back to a server it started?

ae-govau commented 5 months ago

Tests are passing now.

MichaelEischer commented 5 months ago

Thanks!