Add connection close call from worker to controller (#387)
This commit is contained in:
1 parent
7ff4b7f106
commit
9cbc7b5c3d
11 files changed
+671
-197
No files matched your search
@@ -137,6 +137,13 @@ func (w *Worker) handleProxy() http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
defer func() {
|
||||
connectionId := ci.id
|
||||
if err := w.closeConnections(r.Context(), si, []string{connectionId}); err != nil {
|
||||
w.logger.Error("error marking connection closed", "error", err, "connection_id", connectionId)
|
||||
}
|
||||
}()
|
||||
|
||||
si.Lock()
|
||||
ci.connCtx = connCtx
|
||||
ci.connCancel = connCancel
|
||||
|
||||
Reference in new issue
Block a user