GetPeerName() Returns WSAENOTCONN After Select() Returns SuccessLast reviewed: May 20, 1997Article ID: Q165989 |
The information in this article applies to:
SYMPTOMSWhen you run an application that uses sockets and then perform the following in this application, GetPeerName returns WSAENOTCONN.
CAUSEA timing problem allows Select(); to return before Connect();.
RESOLUTIONTo resolve this problem, put a Sleep(0) after the Select() function call; or apply the hotfix mentioned in this article.
STATUSMicrosoft has confirmed this to be a problem in Windows NT version 4.0. This problem was corrected in the latest Microsoft Windows NT 4.0 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):
S E R V P A C K |
Additional query words: prodnt 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |