Open sharpobject opened 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).
@lastnameholiu can you please take a look at this feedback? Thanks!
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.
Yes, I quickly realized my mistake and had unassigned you.
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 ofSO_DONTLINGER
that occurs in the "Meaning" block for values ofl_onoff
Problem: The first article says that setting
SO_DONTLINGER
with any nonzero value is equivalent to settingSO_LINGER
with a value ofstruct linger{0, 0}
. The second article says that settingSO_DONTLINGER
with a zero value is equivalent to settingSO_LINGER
with a value ofstruct linger{0, 0}
and settingSO_DONTLINGER
with any nonzero valuex
is equivalent to settingSO_LINGER
with a value ofstruct linger{1, x}
So the two pages say opposite things about the meaning of
SO_DONTLINGER
.