473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why 90 seconds timeout limit doesn't work?

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.

Jul 25 '07 #1
2 5015
Morgan Cheng wrote:
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.
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.

--
Göran Andersson
_____
http://www.guffa.com
Jul 25 '07 #2
On Jul 25, 2:25 pm, Göran Andersson <gu...@guffa.comwrote:
Morgan Cheng wrote:
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.

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.

>
--
Göran Andersson
_____http://www.guffa.com

Jul 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Plymouth Acclaim | last post by:
Hi guys, We have a problem with Dual AMD64 Opteron/MySQL 4.0.18/Mandrake 10 for a very high volume site. We are evaluating the performance on our new server AMD64 and it seems it's slow compared...
1
by: John | last post by:
I'm trying to write a program that's run on both Windows 98 and Linux. I need a timer, that I can start and when it hits a limit, it needs to call a callback function. I also need to be able to...
3
by: Henke | last post by:
Hi! We have a ASP.NET application that uses remoting to connect to the backend. Is there a way to take care of Sessions that times out in a common way. Now we are checking Session.IsNewSession...
7
by: Mark B | last post by:
Hi I was wondering if someone could help me with the syntax for some VB.Net ASPX code to: - Start 20 threads - End all threads after the sooner of 10 seconds or if all of the threads...
11
by: Chris Ianson | last post by:
Hi all, Well having found this group to be a fountain of knowledge I have another question. And hey, no worries if you don't know or don't want to answer, please ignore this. Is there a way...
2
by: Dariusz Tomon | last post by:
I have GridView1 attached to a SqlDataSource1 (everything done automatically via VS2005). The problem occurs after launching the page because timeout is risen. The question is how to increase the...
22
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded:...
0
by: Morgan Cheng | last post by:
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...
7
by: David Thielen | last post by:
Hi; How do I set how long until IIS 7 drops a session for an ASP.NET 2.0 web app? I want to set it for 8 hours. thanks - dave david@at-at-at@windward.dot.dot.net Windward Reports --...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.