Microsoft KB Archive/186245

{|
 * width="100%"|

FIX: FD_WRITE Reposted After Every Send

 * }

Q186245

-

The information in this article applies to:


 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0

-

SYMPTOMS
When developing a Winsock application using WSAAsyncSelect or WSAEventSelect, the FD_WRITE notification is delivered after every call to send and WSASend on the Windows NT 4.0 platform (up through and including Service Pack 3), even if the call did not fail with the error code WSAEWOULDBLOCK. This behavior is not according to the Winsock specification, and applications should not rely on it.

RESOLUTION
If your application indicates interest in receiving FD_WRITE notification, using either WSAAsyncSelect or WSAEventSelect, your application should continue to send data (send and WSASend) until WSAEWOULDBLOCK is returned. If your applications stops sending data before receiving this error code and relies on FD_WRITE subsequently being delivered, it will not run properly across all Windows platforms.

STATUS
This problem was corrected in Windows 2000.

Additional query words:

Keywords : kbnetwork kbAPI kbOSWinNT400bug kbOSWin2000fix kbSDKPlatform kbWinsock kbGrpDSNet

Issue type : kbbug

Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400