Microsoft KB Archive/298871

= BUG: Calling Shutdown for Only Sending Causes Data Loss on Receives =

Article ID: 298871

Article Last Modified on 4/14/2004

-

APPLIES TO


 * Microsoft Windows CE 3.0 for the Handheld PC
 * Microsoft Windows CE 2.12 for the Handheld PC
 * Microsoft Windows CE 2.11 for the Handheld PC

-



This article was previously published under Q298871



SYMPTOMS
If an application calls shutdown to disable only sending from the socket, later attempts to read data sent to that socket will result in only portions of the data being received.



RESOLUTION
There is no known way to work around this problem.

Applications should delay calls to shutdown until all data has been received.



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



Steps to Reproduce Behavior
Call shutdown with the &quot;how&quot; parameter set to &quot;1&quot; (sends only) on a socket, which still continues to receive data.

The received data will have chunks missing.

Additional query words: corrupt incomplete recv receive data packets

Keywords: kbbug KB298871

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.