Tale of socket->deletelater
One of my test servers was crashing with multiple connections. Digging in I found out that I have used same object for QTcpSocket and disconnect signal was not getting received before getting new connection.
So client should send disconnect before connecting on new connection. So digging in client code, I found nothing. Okay. Documentation... Found out there's close() function in unistd.h which can be used to close a socket connection.
Comments
Post a Comment