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-09 09:43:49


On 09/12/12 06:48, Igor R wrote:
> Well, the only way to get is_open() == false is to close the socket,
> but according to your logs you don't get to stop() function. This's
> really strange and I don't have any idea at this point. Maybe the
> tcp_session object gets destroyed? Ata a glance, that doesn't seem to
> be the case, but try putting some ptint-out in ~tcp_session().
> Besides, print socket_.native_handle() every time you access the
> socket (read/write/check/close).
I did both things. The destructor never gets called. The native socket
changes from 24 to -1 (which I guess it means it is also wrong).


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