mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Add client disconnect to build handler loop
[NO TESTS NEEDED] In process of debugging added request channel check and logging message to build loop. Unable to recreate build drop issue after this. 68k build iterations without fail. Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/containers/podman/v3/pkg/channel"
|
"github.com/containers/podman/v3/pkg/channel"
|
||||||
"github.com/containers/storage/pkg/archive"
|
"github.com/containers/storage/pkg/archive"
|
||||||
"github.com/gorilla/schema"
|
"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/pkg/errors"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
@ -553,6 +553,10 @@ loop:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break loop
|
break loop
|
||||||
|
case <-r.Context().Done():
|
||||||
|
cancel()
|
||||||
|
logrus.Infof("Client disconnect reported for build %q / %q.", registry, query.Dockerfile)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user