This commit is contained in:
Nikolay Kim 2024-11-05 15:16:09 +05:00
parent a8878edbee
commit 8c36c8f54b
2 changed files with 12 additions and 13 deletions

View file

@ -474,7 +474,7 @@ where
// wait until service becomes ready
match self.shared.service.poll_ready(cx) {
Poll::Ready(Ok(_)) => {
self.shared.service.poll_not_ready(cx);
let _ = self.shared.service.poll_not_ready(cx);
Poll::Ready(self.check_error())
}
// pause io read task
@ -723,7 +723,6 @@ mod tests {
error: None,
st: DispatcherState::Processing,
response: None,
ready_count: 0,
read_remains: 0,
read_remains_prev: 0,
read_max_timeout: Seconds::ZERO,

View file

@ -61,15 +61,15 @@ ws = ["dep:sha-1"]
brotli = ["dep:brotli2"]
[dependencies]
ntex-codec = "0.6.2"
ntex-codec = "0.6"
ntex-http = "0.1.12"
ntex-router = "0.5.3"
ntex-router = "0.5"
ntex-service = "3.3"
ntex-macros = "0.1.3"
ntex-macros = "0.1"
ntex-util = "2.5"
ntex-bytes = "0.1.27"
ntex-server = "2.5"
ntex-h2 = "1.2"
ntex-h2 = "1.4"
ntex-rt = "0.4.19"
ntex-io = "2.8"
ntex-net = "2.4"
@ -80,24 +80,24 @@ bitflags = "2"
bytes = "1"
log = "0.4"
pin-project-lite = "0.2"
regex = { version = "1.10", default-features = false, features = ["std"] }
serde = { version = "1.0", features = ["derive"] }
regex = { version = "1.11", default-features = false, features = ["std"] }
serde = { version = "1", features = ["derive"] }
sha-1 = { version = "0.10", optional = true }
thiserror = "1.0"
thiserror = "1"
nanorand = { version = "0.7", default-features = false, features = [
"std",
"wyrand",
] }
# http/web framework
httparse = "1.8"
httparse = "1.9"
httpdate = "1.0"
encoding_rs = "0.8"
mime = "0.3"
percent-encoding = "2.3"
serde_json = "1.0"
serde_json = "1"
serde_urlencoded = "0.7"
url-pkg = { version = "2.4", package = "url", optional = true }
url-pkg = { version = "2.5", package = "url", optional = true }
coo-kie = { version = "0.18", package = "cookie", optional = true }
# openssl
@ -109,7 +109,7 @@ webpki-roots = { version = "0.26", optional = true }
# compression
brotli2 = { version = "0.3.2", optional = true }
flate2 = { version = "1.0.22", optional = true }
flate2 = { version = "1.0", optional = true }
[dev-dependencies]
env_logger = "0.11"