Changes between Initial Version and Version 1 of Ticket #6698, comment 1


Ignore:
Timestamp:
May 29, 2012, 12:55:53 AM (10 years ago)
Author:
chris_kohlhoff

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6698, comment 1

    initial v1  
    1 On some versions of Windows, closing the socket while there is still unbuffered data may result in data loss. Try using a strategy for graceful close, e.g. half closing the socket (using shutdown) and then waiting for the peer to close once it has received all the data (which means receive will fail with asio::error::eof).
     1On some versions of Windows, closing the socket while there is still buffered data may result in data loss. Try using a strategy for graceful close, e.g. half closing the socket (using shutdown) and then waiting for the peer to close once it has received all the data (which means a subsequent receive call in your program will fail with asio::error::eof).