Boost logo

Boost Users :

Subject: Re: [Boost-users] socket.is_open returning false when it is in use
From: Gonzalo Garramuno (ggarra13_at_[hidden])
Date: 2012-12-26 15:40:12


On 26/12/12 11:00, Juan Ramírez wrote:
> What about the function client_thread() ?
>
> The ioservice has no worker attached to it: I think the run() function
> is returning earlier because of that, and then the client is destroyed
> (closing the socket on its way)?
>
The run function does not return early. I placed some print statements
nevertheless which point to all working fine.
The problem is not in the client but in the server.
The client never closes the socket. The server closes it randomly and
fails to send data. But then it can reconnect itself if the client
sends data.
It is a weird behavior.


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