Results 1 to 2 of 2

Thread: Options for detecting if https (port 443) is blocked

  1. #1
    Join Date
    Mar 2011
    Location
    Denmark
    Posts
    74
    Thanks
    7
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Options for detecting if https (port 443) is blocked

    My program uses https: but in the situation when the https port (443) is blocked by a firewall for example, I would like to simply switch to using regular http (port 80)

    My question is how can I detect when the port isn't available?

    Waiting for requests to simply timeout takes to long, and I can't find any thing for manually defining the network timeout duration except for other people requesting the functionality.

    Is there any way for me to do this?

    The only possible solution I can think of is running my own timer and declaring timeout when it expires instead of waiting for the qnetworkreply to actually return, and well that's an ugly hack imo so I was hoping not to have to do it.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Options for detecting if https (port 443) is blocked

    No, you can't do that in a reliable way.
    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.


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

    Berryblue031 (31st August 2011)

Similar Threads

  1. GUI application as DLL. Repaint is blocked.
    By Grinchman in forum Qt Programming
    Replies: 11
    Last Post: 8th June 2011, 07:28
  2. GUI blocked
    By Astrologer in forum Qwt
    Replies: 1
    Last Post: 24th June 2010, 14:07
  3. how blocked center in QGraphicsScene
    By estel in forum Newbie
    Replies: 3
    Last Post: 20th March 2010, 10:11
  4. GUI thread blocked using QThread.
    By summer_of_69 in forum Qt Programming
    Replies: 11
    Last Post: 18th May 2009, 09:43
  5. QThread event loop seems blocked
    By eurodatar in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2009, 16: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.