Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] reconnect without close the socket, is it possible?
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-07-28 11:58:18


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.)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net