moby/api/server
Cory Snider 12bf850c84 cmd/dockerd: gracefully shut down the API server
As of Go 1.8, "net/http".Server provides facilities to close all
listeners, making the same facilities in server.Server redundant.
http.Server also improves upon server.Server by additionally providing a
facility to also wait for outstanding requests to complete after closing
all listeners. Leverage those facilities to give in-flight requests up
to five seconds to finish up after all containers have been shut down.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-04-26 10:57:28 -04:00
..
backend/build Merge pull request #44510 from thaJeztah/api_server_sanitizeRepoAndTags 2023-04-12 22:10:52 +02:00
httpstatus use consistent alias for containerd's errdefs package 2023-04-08 19:30:33 +02:00
httputils chore: use http constants to replace numbers 2023-02-21 23:02:56 +08:00
middleware api/server: fix empty-lines (revive) 2022-09-28 01:58:51 +02:00
router API: deprecate VirtualSize field for /images/json and /images/{id}/json 2023-04-18 14:46:11 +02:00
errorhandler.go errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-21 12:22:39 +01:00
middleware.go api/server: remove "Logging" from config 2022-04-23 23:38:30 +02:00
server.go cmd/dockerd: gracefully shut down the API server 2023-04-26 10:57:28 -04:00
server_test.go api/server: drop unused Config struct 2023-02-28 13:49:53 -05:00