{
}
- virtual void cancel()
- {
- _directory = 0;
- abort("Repository cancelled request");
- }
+ virtual void cancel();
size_t contentSize() const
{
return _d->status;
}
+ void HTTPRepoGetRequest::cancel()
+ {
+ _directory->repository()->http->cancelRequest(this, "Reposiotry cancelled");
+ _directory = 0;
+ }
+
class FileGetRequest : public HTTPRepoGetRequest
{
public:
file.reset(new SGFile(pathInRepo.str()));
if (!file->open(SG_IO_OUT)) {
SG_LOG(SG_TERRASYNC, SG_WARN, "unable to create file " << pathInRepo);
- abort("Unable to create output file");
+ _directory->repository()->http->cancelRequest(this, "Unable to create output file");
}
sha1_init(&hashContext);