- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Update comment regarding SO_REUSEADDR on Windows #71785
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
Conversation
| (rust_highfive has picked a reviewer for you, use r? to override) | 
3325673    to
    5cf11af      
    Compare
  
    | Seems like  | 
| 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 | 
| 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  | 
| 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. | 
83dcb9f    to
    98589ae      
    Compare
  
    98589ae    to
    39a9790      
    Compare
  
    | Ok, I reverted the change and added an explanation as to why we don't set it on Windows. | 
cfg macro with attribute.| @bors r+ rollup | 
| 📌 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.