Select the product you need help with
WinSock Recvfrom() now returns WSAECONNRESET instead of blocking or timing outArticle ID: 263823 - View products that this article applies to. This article was previously published under Q263823 SYMPTOMS In Windows 2000, a User Datagram Protocol (UDP) program may
not work and may generate a WSAECONNRESET response. CAUSE If sending a datagram using the sendto function results in an "ICMP port unreachable" response and the select function is set for readfds, the program returns 1 and the
subsequent call to the recvfrom function does not work with a WSAECONNRESET (10054) error
response. In Microsoft Windows NT 4.0, this situation causes the select function to block or time out. RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 A new sockets IOCTL called "SIO_UDP_CONNRESET" has
been introduced in Windows 2000. When this IOCTL is used, the program must be
rewritten specifically for Windows 2000 to obtain the original Windows NT 4.0
behavior. Windows NT 4.0, Microsoft Windows 95, and Microsoft Windows 98 have
no support for this new IOCTL. In addition to rewriting your application, you
will need the hotfix referenced further down in this article.
(http://support.microsoft.com/kb/260910/
)
How to obtain the latest Windows 2000 service pack
The following code snippet demonstrates a technique that can be used to call WSAIoctl with the SIO_UDP_CONNRESET control code to obtain the original Windows NT 4.0 behavior. In order to compile this code, it is necessary to have the latest Platform SDK installed on your computer. This is available from the following MSDN Web site: http://msdn.microsoft.com
(http://msdn.microsoft.com)
STATUSMicrosoft
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
For more information about how to install Windows 2000 and Windows
2000 hotfixes at the same time, click the following article number to view the article in the Microsoft Knowledge Base:
249149
(http://support.microsoft.com/kb/249149/
)
Installing Microsoft Windows 2000 and Windows 2000 hotfixes
Properties | Article Translations |


Back to the top








