From 86ddff8a91c746ad2ad76838edf4820ef313c17a Mon Sep 17 00:00:00 2001 From: Yan Song Date: Thu, 26 May 2022 11:11:50 +0000 Subject: [PATCH] cargo: upgrade dbs-uhttp to v0.3.0 Nydus snapshotter throws this error if HTTP payload exceeds 1k when calling nydusd's mount API: ``` Post "http://unix/api/v1/mount?mountpoint=/2/fs": context deadline exceeded (Client.Timeout exceeded while awaiting headers) ``` The root cause is that the HTTP server hangs, see https://github.com/openanolis/dbs-uhttp/pull/14 Update dbs-uhttp v0.3.0 to fix. --- Cargo.lock | 4 ++-- api/Cargo.toml | 2 +- storage/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1776ce8f3bd..dbcd6859c5e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -366,9 +366,9 @@ dependencies = [ [[package]] name = "dbs-uhttp" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b773f7f1b9088438e9746890c7c0836b133b07935812867a33e06e81c92c0cdc" +checksum = "0b23c11eebec0e0814aa80b08fc43e2672d8e2c57bd006de66108ff1d2b4bfb6" dependencies = [ "libc", "mio 0.8.2", diff --git a/api/Cargo.toml b/api/Cargo.toml index 454477dcfc7..e4111c2af59 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -10,7 +10,7 @@ license = "Apache-2.0 OR BSD-3-Clause" [dependencies] lazy_static = "1.4.0" log = "0.4.8" -dbs-uhttp = { version = "0.2.0" } +dbs-uhttp = { version = "0.3.0" } serde = { version = "1.0.110", features = ["rc"] } serde_derive = "1.0.110" serde_json = "1.0.53" diff --git a/storage/Cargo.toml b/storage/Cargo.toml index 583bea38d83..ba637b9fa52 100644 --- a/storage/Cargo.toml +++ b/storage/Cargo.toml @@ -35,7 +35,7 @@ fuse-backend-rs = { version = "0.9.0" } nydus-utils = { path = "../utils" } nydus-error = { path = "../error" } -dbs-uhttp = { version = "0.2.0" } +dbs-uhttp = { version = "0.3.0" } [dev-dependencies]