26 Dec
2012
26 Dec
'12
8:40 p.m.
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.