U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » How to catch http client timeout error
How to catch http client timeout error [message #20117] Thu, 19 February 2009 08:49 Go to next message
bahriesz is currently offline  bahriesz
Messages: 1
Registered: February 2009
Junior Member
Hi

Anybody knows how to catch http client time out error? So I can display timeout error message.

Current implmentation of http client will freeze the GUI if it in the process of fetching the URL.

thanks.
Re: How to catch http client timeout error [message #20131 is a reply to message #20117] Fri, 20 February 2009 10:57 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
bahriesz wrote on Thu, 19 February 2009 07:49

Hi

Anybody knows how to catch http client time out error? So I can display timeout error message.

Current implmentation of http client will freeze the GUI if it in the process of fetching the URL.

thanks.

You can set the timeout to whatever you like, but what you really need is to run the HttpClient in a seperate Thread (and compile with MT).

I believe you will get a Null string returned if it times out.
Previous Topic: GUI MT project does not compile
Next Topic: Stop a thread
Goto Forum:
  


Current Time: Wed Jun 03 16:04:40 GMT+2 2026

Total time taken to generate the page: 0.00453 seconds