Multiple Processes Attempting to Use Same Duplicated Socket Halts Program (289152)



The information in this article applies to:

  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Professional SP1

This article was previously published under Q289152

SYMPTOMS

If a program starts multiple child processes that have duplicated a socket, and the processes try to use the duplicate at the same time, both the processes and the program stop responding.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Windows 2000 Service Pack 2.

MORE INFORMATION

This behavior can occur, for example, when process A calls WSADuplicateSocket() and then passes the resulting structure to process B by using an interprocess communication. If process B is currently creating a duplicate socket by means of a call to WSPSocket(), a second call to WSPSocket() before the first is complete may stop both the socket duplication code and the program.

Modification Type:MajorLast Reviewed:11/19/2003
Keywords:kbbug kbfix kbpolicy kbProgramming kbWin2000PreSP2Fix KB289152