Hi there,
i am programming QTcpSockets and i've met some strange behaviour. I run my sockets in main thread and connect them with signals and slots. It seems than QTcpSocket class create some kind of internal deamon-thread. The problem starts when i create let say more than 10 sockets and try connect to host. After they timeout the deamon-thread remains in the system. Even when i close whole app the process (1 thread) stays for quite long time. More sockets - longer time.
How to avoid this long lasting deamon-thread?
alternatively how to terminate deamon-thread on app close?
Bookmarks