Results 1 to 9 of 9

Thread: QTcpSocket deamon-thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTcpSocket deamon-thread

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTcpSocket deamon-thread

    strange behaviour! can you post code?
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. QTcpSocket EventLoop thread is still running?
    By mihau in forum Qt Programming
    Replies: 0
    Last Post: 28th February 2011, 09:41
  2. Replies: 5
    Last Post: 22nd February 2011, 21:21
  3. Replies: 9
    Last Post: 28th November 2009, 20:31
  4. Replies: 16
    Last Post: 7th October 2009, 08:17
  5. is qtcpsocket a thread
    By ersin.ozkan in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2009, 09:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.