Results 1 to 9 of 9

Thread: QNetworkAccessManager timeout when server is down?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Dec 2010
    Location
    Israel
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    59
    Thanked 2 Times in 2 Posts

    Default Re: QNetworkAccessManager timeout when server is down?

    Hi Martinn. Sure you've already passed the timeout of this issue BUT I've been looking for a solution to the same thing, and looks like the way to go is by implementing a timer and using the "downloadProgress" signal emitted from the reply to know that your download is still happening.

    See this post in Stack Overflow:
    http://stackoverflow.com/questions/2...anager-timeout

    Kaleb Pederson's answer:
    Use the QNetworkReply::uploadProgress() (or downloadProgress) signal to alert you that the operation is progressing. Then, set a timer for <n> seconds after the last uploadProgress/downloadProgress notification (with the timer started when the download/upload commenced.) If the download ever stops, you can cancel the operation <n> seconds after the last update.

  2. The following user says thank you to frankiefrank for this useful post:

    shorawitz (29th December 2011)

Similar Threads

  1. QHttp Timeout?
    By musaulker in forum Newbie
    Replies: 4
    Last Post: 25th February 2010, 09:43
  2. QBasicTimer never timeout.
    By kunalnandi in forum Qt Programming
    Replies: 5
    Last Post: 30th January 2010, 07:55
  3. qextserialport waitForReadyRead and timeOut
    By adamatic in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2009, 09:52
  4. Tootip Timeout
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2008, 10:17
  5. QTcpSocket + timeout
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2008, 13:38

Tags for this Thread

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.