Skip to content
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

Make a double-write UDP test more robust #12054

Merged
merged 1 commit into from
Feb 6, 2014

Conversation

alexcrichton
Copy link
Member

I have a hunch this just deadlocked the windows bots. Due to UDP being a lossy
protocol, I don't think we can guarantee that the server can receive both
packets, so just listen for one of them.

@sfackler
Copy link
Member

sfackler commented Feb 6, 2014

It seems a bit unlikely to me that the system would drop packets talking to itself.

@alexcrichton
Copy link
Member Author

My guess is that both sends succeeded, but they collided and only one got received. Just a guess though?

bors added a commit that referenced this pull request Feb 6, 2014
I have a hunch this just deadlocked the windows bots. Due to UDP being a lossy
protocol, I don't think we can guarantee that the server can receive both
packets, so just listen for one of them.
I have a hunch this just deadlocked the windows bots. Due to UDP being a lossy
protocol, I don't think we can guarantee that the server can receive both
packets, so just listen for one of them.
bors added a commit that referenced this pull request Feb 6, 2014
I have a hunch this just deadlocked the windows bots. Due to UDP being a lossy
protocol, I don't think we can guarantee that the server can receive both
packets, so just listen for one of them.
@bors bors closed this Feb 6, 2014
@bors bors merged commit 7b81cc0 into rust-lang:master Feb 6, 2014
@alexcrichton alexcrichton deleted the less-flaky-udp branch February 7, 2014 07:44
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 11, 2024
add external macro checks to `iter_without_into_iter` and `into_iter_without_iter`

Fixes rust-lang#12037

I think it's useful to still lint on local macros, since the user should still be able to add another impl with the `IntoIterator` or `iter` method. I think it's also fairly common to write a macro for generating many impls (e.g. for many similar types), so it'd be nice if we can continue linting in those cases.
For that reason I went with `in_external_macro`.

I also added a test for `#[allow]`ing the lint while I was at it.

changelog: [`iter_without_into_iter`]: don't lint if the `iter` method is defined in an external macro
changelog: [`into_iter_without_iter`]: don't lint if the `IntoIterator` impl is defined in an external macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants