MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

SO_DONTLINGER contradictory documentation #2032

Open sharpobject opened 5 years ago

sharpobject commented 5 years ago

Link to article: https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt in the description of SO_DONTLINGER https://docs.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-linger in the other description of SO_DONTLINGER that occurs in the "Meaning" block for values of l_onoff

Problem: The first article says that setting SO_DONTLINGER with any nonzero value is equivalent to setting SO_LINGER with a value of struct linger{0, 0}. The second article says that setting SO_DONTLINGER with a zero value is equivalent to setting SO_LINGER with a value of struct linger{0, 0} and setting SO_DONTLINGER with any nonzero value x is equivalent to setting SO_LINGER with a value of struct linger{1, x}

So the two pages say opposite things about the meaning of SO_DONTLINGER.

welcome[bot] commented 5 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

mairaw commented 5 years ago

@lastnameholiu can you please take a look at this feedback? Thanks!

amralaa-MSFT commented 5 years ago

I think this was mistakenly assigned to me.

From: Maira Wenzel notifications@github.com Sent: October 22, 2019 3:56 AM To: MicrosoftDocs/feedback feedback@noreply.github.com Cc: Amr Alaa El-Din (IBS) a-amalaa@microsoft.com; Assign assign@noreply.github.com Subject: Re: [MicrosoftDocs/feedback] SO_DONTLINGER contradictory documentation (#2032)

Assigned #2032https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Ffeedback%2Fissues%2F2032&data=02%7C01%7Ca-amalaa%40microsoft.com%7C44de750f3af04c3aa9f808d75692ecb7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637073061345807388&sdata=RvjykDd34I5dwziN33I8hARZXlT0YPyOtuCfaELm9Zs%3D&reserved=0 to @a-amalaahttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fa-amalaa&data=02%7C01%7Ca-amalaa%40microsoft.com%7C44de750f3af04c3aa9f808d75692ecb7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637073061345817380&sdata=HTaGtBzHwv%2ByyFTCjlgfdC06btdIVFHj5RNwDdB3dNY%3D&reserved=0.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Ffeedback%2Fissues%2F2032%3Femail_source%3Dnotifications%26email_token%3DAKVM55PWFTNYR7OE6ZJGKW3QPZMRLA5CNFSM4JAT4S6KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOULJWS7A%23event-2731764092&data=02%7C01%7Ca-amalaa%40microsoft.com%7C44de750f3af04c3aa9f808d75692ecb7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637073061345817380&sdata=083b%2FDrXWQY8R5XyDo1CTta0heoF29kTH9U9ZALjMWY%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKVM55K7KTUNNFS2P3O42HTQPZMRLANCNFSM4JAT4S6A&data=02%7C01%7Ca-amalaa%40microsoft.com%7C44de750f3af04c3aa9f808d75692ecb7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637073061345827377&sdata=FQllkdXP2D%2B8olj6Ta0wL1QU68mFIB%2BHdwm6NS%2F9djQ%3D&reserved=0.

mairaw commented 4 years ago

Yes, I quickly realized my mistake and had unassigned you.