Files
athens/pkg/config
Rob Prentiss a1553999bb Make shutdown timeout configurable (#1806)
Currently, when shutting down the server (via SIGINT or SIGTERM), the
shutdown closes any open connections after only 10 seconds (via a
context.WithTimeout). This does not provie a lot of time for longer
operations, such as listing versions, or downloading a larger module zip
file.

When running in Kubernetes, and scaling instances or changing config,
this causes a lot of dropped connections and gateway errors. 10 seconds
is arguably much too short, and should be configurable.

This commit increases that default to 60 seconds, and adds a config
variable to allow users to specify their desired timeout.
2023-01-23 22:02:45 -08:00
..
2018-08-31 14:23:41 -04:00
2020-06-24 14:29:30 -04:00
2018-11-16 16:00:08 -05:00
2018-12-12 21:17:26 +01:00
2020-06-24 14:29:30 -04:00
2020-06-24 14:29:30 -04:00
2020-02-10 16:03:25 -08:00
2020-06-24 14:29:30 -04:00
2018-11-16 16:00:08 -05:00