-
Notifications
You must be signed in to change notification settings - Fork 222
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
Can't connect to example server #21
Comments
Thank you for submitting an issue. This appears to be the same error as happened under OS-X here. However, I'm assuming that you aren't using the Based on your research, it appears to be an issue with requesting peer_addr on the socket. Your example only shows creating a WebSocket but not running it. Will you send me a complete minimal example that replicates this issue on your system? I can't test on Windows 8.1, but I can try to replicate the issue on Windows 10. Please test on master, there are updates for master that will land soon. |
This is the dependencies section of my Cargo.toml:
Besides this, there's only some package metadata - certainly nothing that would affect building. What do you mean by "not running it"? The steps I used to reproduce this when bisecting were:
Some early builds didn't have logging implemented, but you could still see Firefox failing to connect on a broken revision, and the server example logs "Server got message 'hello'." in good builds. Do you mean a complete, minimal example that doesn't involve Firefox? In that case, the I'm not sure if this is the same as #17 - openssl isn't even being built, this is the log from
This is actually a little bit awkward, because it stopped reproducing for me on both master and stable overnight - even in an older build of my package where it did reproduce earlier. Do you know if there's some sort of platform issue that might cause this (aside from Windows being Windows)? Edit: Well, now it reproduces again. Here's a
In fact, it seems that setting RUST_LOG=trace is exactly what makes it reproduce. This is also true for my program that depends on ws-rs and affects both stable and master. Setting RUST_LOG to trace, debug or warning makes this reproduce; when set to error, info or not set at all it works fine. |
That's it, thank you! It's probably a trace log request that is accessing the peer_addr after the socket is disconnected. I will find it and remove it. |
Fantastic, I can't wait. Do you have an estimate for when this fix will land, available through Cargo and all? |
I've replicated the bug, and I am hoping to have the fix out later today. Hopefully I will be able to publish a release today too. This next release will have the timeouts feature. If you want, there is an ongoing discussion of the timeouts API, if you would like to express your opinion about the |
This should now be fixed in the master branch. I will retest and publish the latest changes. |
When I run the server example and try to do
in Firefox's devtools, Firefox spits out a "can't estabilish connection" error.
This is the log from such a run, gathered with
RUST_LOG=trace
(I cut out some repeated lines frommio::timer
to keep it relatively short):The referenced error is 10057 on this page (error message is in my OS's locale, hence the escaped non-ASCII characters). This happens both on master and stable.
I also took the liberty of bisecting both stable branch and master (making sure to
cargo clean
between iterations) and, according to bisect, this commit is the one that introduced the regression on stable, and this one introduced it on master. The bisect results seem rather weird to me, but maybe they're at least a little informative.In case this is relevant (it probably is?) I'm using Windows 8.1.
The text was updated successfully, but these errors were encountered: