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.
Bookmarks