Results 1 to 2 of 2

Thread: QTcpSocket timeout problem

  1. #1
    Join Date
    Mar 2008
    Posts
    15

    Default QTcpSocket timeout problem

    Hi all!
    I have a problem with tcp timeout connection.
    /proc/sys/net/ipv4/tcp_keepalive_probes set to 9 and after 9 tcp packet retransmissions without answer ( ack ) nothing happens, connection is lost, server disconnects me, but my app thinks, that everything is ok and even tries to send packets later. It's simply can't recognize that connection is lost.
    No signal is emited.
    And every minute i send a keep alive notification to server.

  2. #2
    Join Date
    Mar 2008
    Posts
    15

    Default Re: QTcpSocket timeout problem

    Hm,ok.
    How i can use qtcpsocket with setsocketopt?
    socketDescriptor() always return -1.

Similar Threads

  1. QTcpSocket + timeout
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2008, 13:38
  2. Problem with QTcpSocket in QThread
    By Raistlin in forum Qt Programming
    Replies: 8
    Last Post: 6th October 2007, 12:23
  3. problem with QTcpSocket
    By SuperSonik in forum Qt Programming
    Replies: 8
    Last Post: 31st January 2007, 16:00
  4. Problem with QTcpSocket and QDataStream
    By Valheru in forum Qt Programming
    Replies: 4
    Last Post: 16th September 2006, 13:08
  5. QTcpSocket disconnection problem
    By erdi in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2006, 21:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.