Why 90 seconds timeout limit doesn't work?

M

Morgan Cheng

I have one webservice A calling another webserivce B. B is time
costing and sometimes the response takes more than 160 seconds. A is
supposed to be Thread.Abort in 90 seconds. However, the 90 seconds
time limit doesn't work. It only get "The operation has timed out"
WebException from calling B afte 100 seconds.

I checked IIS6 Manager, Properties->Home Directory->Configuration-
Options. The ASP script timeout is 90 seconds as default. The
webservice is written in C#. Does it matter?

And, there is no "Server.ScriptTimeout" setting in code. I am curious
why 90 seconds doesn't work.
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Morgan said:
I have one webservice A calling another webserivce B. B is time
costing and sometimes the response takes more than 160 seconds. A is
supposed to be Thread.Abort in 90 seconds. However, the 90 seconds
time limit doesn't work. It only get "The operation has timed out"
WebException from calling B afte 100 seconds.

I checked IIS6 Manager, Properties->Home Directory->Configuration-
webservice is written in C#. Does it matter?

And, there is no "Server.ScriptTimeout" setting in code. I am curious
why 90 seconds doesn't work.

How are you doing the Thread.Abort?

If you expect the ASP script timeout to do that, your expectations are
not realistic, as it is not an ASP script that you are running.
 
M

Morgan Cheng

How are you doing the Thread.Abort?

If you expect the ASP script timeout to do that, your expectations are
not realistic, as it is not an ASP script that you are running.

For ThreadAbortException, I am going to catch it and log a error. Then
call Thread.ResetAbort() to prevent it from rethrow.

I don't want to change the default timeout value. Just curious which
config actually control the timeout of webservice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top