You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
egress control client: keep the connection when a call outlives its ctx #587
Follow-up from the #583 review (comment #583 (comment)), deferred out of that PR by agreement.
Problem. A control call abandoned mid-flight (its ctx expires with the reply still pending) drops the shared connection. That has three effects:
the server Unregisters every VM on the connection;
Proxy.Unregister aborts all their live connections;
so one Register that exceeds egressControlTimeout (for example, moca-egress briefly slow under load) kills every in-flight git clone on the host until the heal loop re-registers, about 100 ms later.
#583 documents this in client.go. In practice it is rare: the launcher's calls no longer inherit the Exec request's cancel, so only a stalled moca-egress gets here.
Proposed. Keep the connection: record one owed reply and have the per-connection reader discard it. Alternatively, add a request id to ControlRequest/ControlReply, which is an additive change on the wire. Add a test that one timed-out call leaves the other VMs' tunnels intact.
Activity
Fix: keep the egress control connection when a call outlives its ctx