make h2 client connection cancellable

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-06-05 09:45:59 +02:00
parent e3975c2c47
commit cb4426b348
2 changed files with 22 additions and 5 deletions

View File

@ -476,6 +476,7 @@ fn create_backup(
}
client.finish().wait()?;
client.force_close();
let end_time = Local.timestamp(Local::now().timestamp(), 0);
let elapsed = end_time.signed_duration_since(backup_time);