Skip to content

Commit

Permalink
Use GracefulExitContext for Proxy Web Endpoint service (#39693)
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 authored Mar 21, 2024
1 parent a683fa2 commit 8b09380
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 8b09380

Please sign in to comment.