TcpStream::connect_timeout with Duration::MAX never succeeds on Windows #112405
Labels
A-io
Area: `std::io`, `std::fs`, `std::net` and `std::path`
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
O-windows
Operating system: Windows
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Hello! 👋
I tried this code on Windows:
I expected to see this happen: Success for an available address like
google.com:80
and blocking forever (or until TCP timeout) forhostname.invalid:80
just like on Linux.Instead, this happened: the call never succeeds, not even for
google.com:80
on Windows.Related: hartwork/rust-for-it@5056e69
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: