cloudflared-mirror/tunnelrpc
GoncaloGarcia e05939f1c9 TUN-8621: Prevent QUIC connection from closing before grace period after unregistering
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
2024-09-05 13:15:00 +00:00
..
metrics TUN-8422: Add metrics for capnp method calls 2024-05-28 14:14:25 -07:00
pogs TUN-8422: Add metrics for capnp method calls 2024-05-28 14:14:25 -07:00
proto TUN-8423: Deprecate older legacy tunnel capnp interfaces 2024-05-23 11:17:49 -07:00
quic TUN-8489: Add default noop logger for capnprpc 2024-07-02 22:05:28 +00:00
registration_client.go TUN-8621: Prevent QUIC connection from closing before grace period after unregistering 2024-09-05 13:15:00 +00:00
registration_server.go TUN-8489: Add default noop logger for capnprpc 2024-07-02 22:05:28 +00:00
utils.go TUN-8489: Add default noop logger for capnprpc 2024-07-02 22:05:28 +00:00