From 51a1b38fc50345745f9f79842dce82c256294dc4 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 11 Aug 2026 10:51:24 +0000 Subject: [PATCH] fix(aibridgeproxyd): disable keep-alives on mock aibridged to prevent stale-conn EOF --- enterprise/aibridgeproxyd/reload_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/enterprise/aibridgeproxyd/reload_test.go b/enterprise/aibridgeproxyd/reload_test.go index f71075e8ef2..f07462d970c 100644 --- a/enterprise/aibridgeproxyd/reload_test.go +++ b/enterprise/aibridgeproxyd/reload_test.go @@ -154,6 +154,11 @@ func newReloadTestHarness(t *testing.T) *reloadTestHarness { w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte("aibridged")) })) + // The proxy reuses pooled connections to aibridged, but net/http will + // not retry a POST on a closed pooled conn, so a stale reuse fails + // with a bare EOF on Windows. Force a fresh conn per request. + // https://github.com/coder/internal/issues/1564 (AIGOV-430) + bridged.Config.SetKeepAlivesEnabled(false) t.Cleanup(bridged.Close) store := &providerStore{}