BUG: Calling Shutdown() for Only Sending Causes Data Loss on Receives (298871)



The information in this article applies to:

  • Microsoft Windows CE Operating System, Versions 3.0
  • Microsoft Windows CE Operating System, Versions 2.12
  • Microsoft Windows CE Operating System, Versions 2.11

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.

MORE INFORMATION

Steps to Reproduce Behavior

Call shutdown with the "how" parameter set to "1" (sends only) on a socket, which still continues to receive data.

The received data will have chunks missing.

Modification Type:MajorLast Reviewed:4/14/2004
Keywords:kbbug KB298871