Changes between Initial Version and Version 1 of Ticket #6698, comment 1
- Timestamp:
- May 29, 2012, 12:55:53 AM (10 years ago)
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 receivewill fail with asio::error::eof).1 On 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).