## [mirendev/runtime#1461](https://github.com/mirendev/runtime/pull/1461) Since my last review, the only change is a30c67f, and it does what I suggested. In `TestWafMiddlewareStreamsChunkedResponse`, the backend now calls `Flush` immediately after `WriteHeader(http.StatusNotFound)`, before the 50ms sleep. As a result, the proxy's `RoundTrip` gets the 404 back before any body exists and then waits in `copyBuffer`. That is the window between the proxy's `WriteHeader` and its first `Write`. The comment next to the flush explains why it's there, which will help whoever bumps Coraza next. If a future version stopped gating `Flush` on the real `WriteHeader`, the `assert.Equal(t, http.StatusNotFound, ...)` check would catch it. I also checked how Coraza behaves after the proxy hijacks the connection. `pkg/waf/waf.go` sets `SecResponseBodyAccess Off`, so Coraza doesn't buffer upgraded responses and doesn't replay them once the tunnel closes. The websocket path therefore relies only on the new `Hijack` pass-through, and `TestWafMiddlewareAllowsWebSocketUpgrade` exercises that end to end. I still recommend approval. The fix is two small pass-through methods on the ingress writer, and real-socket tests cover both through the production writer chain. Nothing is left open. ## Replies to existing threads _Posted to the PR's comment threads when you submit._ - _(reply & resolve: addressed)_ a30c67f does this: the backend flushes right after `WriteHeader(404)`, so the proxy now waits in `copyBuffer` for about 50ms after the status has reached Coraza. The 404 assertion now covers the exact race I was worried about. Thanks for adding the comment that explains why the flush is there. --- **Verdict:** ready