fix: use a background context when piping derp connections (#6750)

This was causing boatloads of connects to reestablish every time...

See https://github.com/coder/coder/issues/6746
This commit is contained in:
Kyle Carberry
2023-03-23 09:54:07 -05:00
committed by GitHub
parent 7949db8e03
commit ed9a3b9251
4 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -639,7 +639,7 @@ func (api *API) proxyWorkspaceApplication(rw http.ResponseWriter, r *http.Reques
})
}
conn, release, err := api.workspaceAgentCache.Acquire(r, ticket.AgentID)
conn, release, err := api.workspaceAgentCache.Acquire(ticket.AgentID)
if err != nil {
site.RenderStaticErrorPage(rw, r, site.ErrorPageData{
Status: http.StatusBadGateway,