Uh oh!
There was an error while loading. Please reload this page.
Update comment regarding SO_REUSEADDR on Windows - #71785
Conversation
rust-highfive
commented
May 2, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
Seems like |
Mark-Simulacrum
commented
May 2, 2020
Hm, so some rough searching online suggests that Windows may not actually want this set (e.g. this random github thread). I myself don't have much windows experience so I'm not willing to approve this just yet. I'll leave myself assigned as I don't know if we have anyone better at this time. cc @retep998 |
reitermarkus
commented
May 2, 2020
I also don't really have any Windows experience, just stumbled upon this while implementing So either this should be used or the constant removed. |
From the very MSDN article that you linked:
While on non-windows platforms So no, we do not want this change. A change which we should consider though is setting |
Mark-Simulacrum
commented
May 2, 2020
Okay, yeah, that's what I suspected based on the GitHub thread. My skimming must have missed that on the MSDN page. I would appreciate an update to this PR which includes a note that links to the MSDN page and summarizes why we don't want it. |
This PR could be changed to document that for Windows. |
reitermarkus
commented
May 2, 2020
Ok, I reverted the change and added an explanation as to why we don't set it on Windows. |
cfg macro with attribute.Mark-Simulacrum
commented
May 2, 2020
@bors r+ rollup |
bors
commented
May 2, 2020
📌 Commit 39a9790 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#69274 (Implement RFC 2396: `#[target_feature]` 1.1) - rust-lang#71767 (doc: make Stack and StackElement a little pretty) - rust-lang#71772 (Mark query function as must_use.) - rust-lang#71777 (cleanup: `config::CrateType` -> `CrateType`) - rust-lang#71784 (Remove recommendation for unmaintained dirs crate) - rust-lang#71785 (Update comment regarding SO_REUSEADDR on Windows) - rust-lang#71787 (fix rustdoc warnings) Failed merges: r? @ghost
No description provided.