Add connection close call from worker to controller (#387)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-21 00:09:50 -04:00
1 parent 7ff4b7f106
commit 9cbc7b5c3d
11 files changed
+671 -197

No files matched your search

+7
View File
@@ -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