9 Dec
2012
9 Dec
'12
2:43 p.m.
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).