mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user