e251a21810
Whenever cloudflared receives a SIGTERM or SIGINT it goes into graceful shutdown mode, which unregisters the connection and closes the control stream. Unregistering makes it so we no longer receive any new requests and makes the edge close the connection, allowing in-flight requests to finish (within a 3 minute period). This was working fine for http2 connections, but the quic proxy was cancelling the context as soon as the controls stream ended, forcing the process to stop immediately. This commit changes the behavior so that we wait the full grace period before cancelling the request |
||
---|---|---|
.. | ||
conn_aware_logger.go | ||
external_control.go | ||
metrics.go | ||
pqtunnels.go | ||
supervisor.go | ||
tunnel.go | ||
tunnel_test.go | ||
tunnelsforha.go |