Results 1 to 5 of 5

Thread: asynchronous vs. synchroneous

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: asynchronous vs. synchroneous

    A... sorry, I didn't notice the event loop in your code. Increase the timeout. Those 5 seconds in the article were just an example. You can even completely get rid of the timeout if you're certain QNetworkAccessManager will report a failure when it doesn't manage to contact the website.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    timmu (28th August 2009)

  3. #2
    Join Date
    Aug 2009
    Posts
    122
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    74

    Default Re: asynchronous vs. synchroneous

    Increasing the timeout is a great suggestion and I have tried that one too but nothing much has changed. My problem isn't that the program has a timeout problem. The replyFinished() function sometimes returns the wrong verdict. It sometimes says the website is OK when it is not and the other way around.

    Is increasing the timpout the best way to make the program more syncronous?
    Last edited by timmu; 28th August 2009 at 10:56.

Similar Threads

  1. Replies: 10
    Last Post: 6th May 2011, 16:00
  2. QSocket asynchronous read-write
    By ct in forum Newbie
    Replies: 1
    Last Post: 21st March 2006, 09:59
  3. Asynchronous server msg vs synchronous functions
    By nouknouk in forum Qt Programming
    Replies: 9
    Last Post: 2nd February 2006, 17:10

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.