-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All network requests on Windows 7 fail on 0.1.9. #423
Comments
on Windows 10, I got this error (and i think this is also a network error, based on the os error code 10054):
|
@liigo That unicode inner message says "远程主机强迫关闭了一个现有的连接。" / "It was forcibly closed by the remote host an existing connection.". I'm guessing the PoisonError you are seeing is from the Mutex around TlsStream, but I can't imagine how. @kevinpoitra's error looks like
The error information surfaced in these error messages isn't great. I want to be able to see type names for every error. And ProtocolError isn't providing a lot of information. cc @alexcrichton error reporting stuff. @sfackler Do you understand what's happening with the errors on windows? |
I do not have a great understanding of the schannel stuff unfortunately. |
Having done a marginal amount of poking, I was able to yield this (some of the debug messages mine):
I don't actually know anything about schannel, but maybe this info can save some time? |
I've reproduced the panic @Lligo sees, calling |
And I got a better stack trace
|
I'm running into lots of weird problems. Downloads randomly hang for a very long time. |
I've also experienced long delays before the download starts, although I haven't had it fail as described here. |
Is 0.1.8 works well? How to downgrade to it? Or it is website issue? |
@pravic 0.1.8 works but is completely insecure. There are also no release archives to download it from - the builds are gone. |
@brson for now it might make sense to back out of native-tls back to openssl, but include the verify stuff. I'm in the process of rewriting the schannel library and that may resolve these weird issues as well. |
That may be best, yeah. |
The stack trace in my previous message looks fairly nonsensical. Lots of interleaved frames that look unrelated. |
I've made some progress debugging the schannel integration and have identified several bugs. After fixing it seems to be performing better locally, but I won't have a patch together until tomorrow. |
I've made the fix for the long delays and eliminated the panic from mutex poisoning, but I doubt I've found the protocolerror from the OP. Schannel is a typically complicated Win32 API and it's really hard to figure out how to use it correctly. It looks to me like schannel-rs is not doing the shutdown sequence, and I'm sure it's got more bugs. |
Guess its better to use the unsecure version than broken one. Or at least an option to use http for non-paranoics. Offtop :( |
@pravic Yeah, plain HTTP would be a good workaround. Too bad I disabled it in the same PR that I enabled the broken TLS! I'll make another PR to enable plain HTTP. |
I've got the same error on Windows 7 Ultimate SP1 (Core i3 64-bit, 8 GiB RAM), using
|
For the record I just got the latest x86_64-pc-windows-msvc rustup-init on Windows 10 x64 and had no issues with it downloading and installing stuff. |
@brson Unfortunately 0.1.10 doesn't fix the issue completely. Even though setting the two RUSTUP env vars to With a build where I added some logging to dump the env var in
|
@pravic I think that error means you're still using 0.1.9. |
Yep. |
And @brson released 0.1.10 to fix that problem, which as I said in my comment doesn't fix the problem. |
Indeed :( |
(I worked around it by just doing |
Is it fixed? 0.1.11 and today's 0.1.12 seems to work well. |
@pravic The current version works fine for me. |
Tried out 0.1.12 on the machine that was originally having issues, all seems to be working fine now. |
I was using 0.1.8 up until yesterday. I ran rustup self update, it updated to 0.1.9, and now anything that makes a network request fails. Specifically, rustup throws an error here. I then tried uninstalling rustup via rustup self uninstall, and then downloaded rustup-init.exe and ran that, which also is giving the same error as it attempts to download the stable channel's current hash. Here's the error itself.
I want to say this is due to this rust-native-tls issue, but I'm not certain.
For reference, I'm on Windows 7.
The text was updated successfully, but these errors were encountered: