The information in this article applies to:
SYMPTOMS
Windows Sockets version 2.0 does not deallocate a socket that has been duplicated [using WSADuplicateSocket()] if the Closesocket() function is called against the duplicated socket descriptor first, and then against the duplicate socket. CAUSE
The socket handle is obtained from the system kernel by the socket provider. The internal data that the kernel handle references contains an entry point into a socket provider's close function. Duplicate socket handles do not include provider links. RESOLUTIONUse of the SO_REUSEADDR socket option is indicated, because by default, a socket cannot be bound to a local address that is already in use. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONFor additional information about duplicated sockets and Closesocket(), please see the following article in the Microsoft Knowledge Base: Q198663 BUG: Closesocket() on a Duplicated Socket Fails to Clean Up Additional query words: leak
Keywords : kbprg win95x |
Last Reviewed: August 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |