DOCERR: Setting of SO_DEBUG Option Is Ignored by Winsock Apps

Last reviewed: November 12, 1995
Article ID: Q138965
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) for Windows versions 3.1, 3.11
  • Microsoft Win32 Software Development Kit (SDK) versions 3.1, 3.5, 3.51, 4.0

The Windows Sockets specification (Winsock) version 1.1 provides for an application to set the SO_DEBUG option by calling the setsockopt() API.

Although a call to set this option succeeds (doesn't return SOCKET_ERROR), the setting is ignored by all Microsoft Windows Sockets implementations. This includes the Winsock implementations for:

  • Windows for Workgroups 3.11 (MS TCP/IP-32)
  • Windows NT 3.1, 3.5, 3.51
  • Windows 95
  • LAN Manager 2.2c


Additional reference words: 3.11 4.00 3.10 3.51 2.20c 3.50
KBCategory: kbnetwork kbdocerr
KBSubcategory: NtwkWinsock


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.