
28 Jul
2013
28 Jul
'13
3:58 p.m.
On 07/28/2013 02:42 PM, TONGARI J wrote:
Neither of them helps :(
Even though not connected, remote_endpoint(ec) returns the intended endpoint without error...
Sounds like an error in Boost.Asio then. On Linux it just calls getpeername() so we always get the right result, whereas on Windows it appears to cache the remote endpoint, and you may have encountered a situation where the cache is out of sync with reality. Maybe you should create a ticket (or post to the asio mailing-list or whatever one does to get the attention of the Asio author.)