Skip to content

Commit

Permalink
Use GracefulExitContext for Proxy Web Endpoint service
Browse files Browse the repository at this point in the history
GracefulExitContext is usually the context that should be used to be
notified of process shutdown.

ExitContext only notifies on immediate shutdowns, and gives no time to
do clean ups.
  • Loading branch information
marcoandredinis committed Mar 21, 2024
1 parent 62ccdac commit b27e445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3987,7 +3987,7 @@ func (process *TeleportProcess) initProxyEndpoint(conn *Connector) error {
Emitter: streamEmitter,
PluginRegistry: process.PluginRegistry,
HostUUID: process.Config.HostUUID,
Context: process.ExitContext(),
Context: process.GracefulExitContext(),
StaticFS: fs,
ClusterFeatures: process.getClusterFeatures(),
UI: cfg.Proxy.UI,
Expand Down

0 comments on commit b27e445

Please sign in to comment.