9 Dec
2012
9 Dec
'12
9:48 a.m.
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).