Skip to content

Commit

Permalink
Merge pull request #10295 from jwhonce/issues/10154
Browse files Browse the repository at this point in the history
Add client disconnect check to build handler loop
  • Loading branch information
openshift-merge-robot authored May 10, 2021
2 parents fbc128e + 290a582 commit 76c8577
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/api/handlers/compat/images_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/containers/podman/v3/pkg/channel"
"github.com/containers/storage/pkg/archive"
"github.com/gorilla/schema"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
Expand Down Expand Up @@ -553,6 +553,10 @@ loop:
}
}
break loop
case <-r.Context().Done():
cancel()
logrus.Infof("Client disconnect reported for build %q / %q.", registry, query.Dockerfile)
return
}
}
}
Expand Down

0 comments on commit 76c8577

Please sign in to comment.