Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Status of 200 returned with network unplugged
Buckaroo

From: Berwyn, PA USA
Posts: 13
Member Since: 06/17/03
posted September 14, 2006 3:59 PM

My webtool application has been running mostly fine for 3 years, but hiccups on occasion.

While testing today I noticed that the GetEx and Post methods return 200 (success) even when the network cable is unplugged!

Any idea how this is possible?

Also, after setting timeout to 180 seconds, GetEx returns after only 26 seconds.

My webtool version was current in spring of 2003, but the update reports do not reveal any of these issues. Any ideas?

Many thanks,
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 15, 2006 1:02 PM

Hi, I want to check this out but I need to know a few specifics. When you say the method returns a 200, what exactly do you mean? From what I can tell it does not return anything, it just fills in the values you pass in. Where exactly are you seeing the 200?

As far as returning something with the network cable unplugged, I would have to guess that you have caching enabled and the control is finding a cached copy.

As far as the method returning after 26 seconds are you saying that you unplugged the cable after 26 seconds? If so, that's what I would expect.

Please elaborate and I will attempt to assist you.

Buckaroo

From: Berwyn, PA USA
Posts: 13
Member Since: 06/17/03
posted September 15, 2006 3:11 PM

Thanks Tony,

I call either GetEx or Post, (network cable unplugged throughout) then check 3 properties: status (=200), state (= 0), and StatusText ( = 'OK"). Should this be so?

With the network cable unplugged beforehand, GetEx times out after roughly 26 seconds. But I set the timeout property to 180 seconds (180,000.)

The Cache property is set to False.

Any other thoughts?

Many thanks,
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 15, 2006 3:36 PM

The variable used to keep track of status is initialized at creation to 200. If a response is received from the server, then the value is set to what the server responded with.

In the case where the server does not respond, an exception is thrown but the variable remains at 200. Although this seems a little strange, I checked the code and this is the way it has been since the control was first written 8 years ago. I think most people have just ignore the status variable when the method does not return without throwing an exception.

Regarding the timeout, I am not able to duplicate the 26 second delay. When I call the method with the cable unplugged the method returns immediately. My guess is at some point we updated it to return immediately when a catastrophic error such as that is encountered.

ShadowSteel
John.Blackham@Taxworks.com

From: Kaysville, UT USA
Posts: 2
Member Since: 11/28/06
posted November 28, 2006 9:02 PM

Buckaroo I had the same exact problem. I did a word around where I got the size of the content length that I was requesting beforehand using the head method. Then when the content comes down off getex I check the length of it against the length I should have got in the head command. This would tell me whether or not I needed to request to the server I needed partial content on any subsequent requests. Hope that helps!
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX