cargo-criterion icon indicating copy to clipboard operation
cargo-criterion copied to clipboard

Unable to open socket to connect to Criterion.rs

Open rileyshahar opened this issue 2 years ago • 2 comments

I get the following error when running cargo criterion:

Error: Unable to open socket to connect to Criterion.rs

Caused by:
    Cannot assign requested address (os error 99)

cargo bench works as expected. I'm on cargo-criterion 1.1.0, rustc 1.56, criterion 0.3.5, running on arch linux.

rileyshahar avatar Nov 09 '21 09:11 rileyshahar

I'm having nearly the same issue running on Windows 10 with criterion 0.3.5

Error: Failed to receive message from Criterion.rs benchmark target disjoint_indices

Caused by:
    An existing connection was forcibly closed by the remote host. (os error 10054)
 λ  rustc -vV
rustc 1.56.1 (59eed8a2a 2021-11-01)
binary: rustc
commit-hash: 59eed8a2aac0230a8b53e89d4e99d55912ba6b35
commit-date: 2021-11-01
host: x86_64-pc-windows-msvc
release: 1.56.1
LLVM version: 13.0.0

 λ  cargo -vV
cargo 1.56.0 (4ed5d137b 2021-10-04)
release: 1.56.0
commit-hash: 4ed5d137baff5eccf1bae5a7b2ae4b57efad4a7d
commit-date: 2021-10-04

 λ  cargo criterion -vV
cargo-criterion 1.1.0

Kixiron avatar Nov 15 '21 20:11 Kixiron

same here

 λ  rustc -vV
rustc 1.63.0 (4b91a6ea7 2022-08-08)
binary: rustc
commit-hash: 4b91a6ea7258a947e59c6522cd5898e7c0a6a88f
commit-date: 2022-08-08
host: x86_64-pc-windows-msvc
release: 1.63.0
LLVM version: 14.0.5

 λ  cargo -vV
cargo 1.63.0 (fd9c4297c 2022-07-01)
release: 1.63.0
commit-hash: fd9c4297ccbee36d39e9a79067edab0b614edb5a
commit-date: 2022-07-01
host: x86_64-pc-windows-msvc
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:Schannel)
os: Windows 10.0.19044 (Windows 10 Pro) [64-bit]

 λ  cargo criterion -vV
cargo-criterion 1.1.0

Zerowalker avatar Aug 28 '22 06:08 Zerowalker