Article ID: 165989 - Last Review: November 1, 2006 - Revision: 1.2 GetPeerName() Returns WSAENOTCONN After Select() Returns SuccessThis article was previously published under Q165989 SYMPTOMS
When you run an application that uses sockets and then perform the
following in this application, GetPeerName returns WSAENOTCONN.
CAUSE
A timing problem allows Select(); to return before Connect();.
RESOLUTION
To work around this problem, put a Sleep(0) after the Select() function
call.
To resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows NT Server 4.0, Terminal Server Edition. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 152734
(http://support.microsoft.com/kb/152734/EN-US/
)
How to Obtain the Latest Windows NT 4.0 Service Pack
STATUSMicrosoft has confirmed that this is a problem in Windows NT 4.0 and Windows NT Server 4.0, Terminal Server Edition. This problem was first corrected in Windows NT 4.0 Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 4. | Article Translations
|
Back to the top
