473,804 Members | 3,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout Clarification (All 5 of them)

ASP.NET, Windows Forms, Web Services

WebService Proxy Timeout = 100secs
WebService Asmx = Unlimited?
IIS ASP ScriptTimeout = 90secs
IIS ASP.NET Execution Timeout = 110secs
SQL CommandTimeout = 30secs

I've been running tests to see where these number hit, based on my
analysis:

1. SmartClient calling a webservice. Even if the webservice takes
ages, the client times out at 100 secs. The service will continue
executing on the server to completion however long it takes:

Question: Is there a way to terminate the server execution when the
client timesout so that it is a consistent user experience and so that
it doesnt lock up resources on the server?

2. Does the IIS ASP ScriptTimeout have any effect?

3. With httpRuntime execTimeout set to 10secs, if I put an infinite
loop in an ASP.NET page, should the behaviour be that it shows a
timeout after ~10secs and the page execution on the server is killed?

4. Given the default values above, what should these be changed to for
best performance?

Thanks for the clarifications and I hope this can clear up any
confusion for a lot of folks too.

Jul 14 '07 #1
2 2904
R3al1ty wrote:
ASP.NET, Windows Forms, Web Services

WebService Proxy Timeout = 100secs
WebService Asmx = Unlimited?
IIS ASP ScriptTimeout = 90secs
IIS ASP.NET Execution Timeout = 110secs
SQL CommandTimeout = 30secs

I've been running tests to see where these number hit, based on my
analysis:

1. SmartClient calling a webservice. Even if the webservice takes
ages, the client times out at 100 secs. The service will continue
executing on the server to completion however long it takes:

Question: Is there a way to terminate the server execution when the
client timesout so that it is a consistent user experience and so that
it doesnt lock up resources on the server?
You could store the start time in a variable, so that you can check
periodically if the execution takes too long.

You could also start a timer that triggers after a given time, so that
you could stop the main thread if it has gotten out of hand. Killing a
thread is not the first choise, though, if there are any alternatives.
If you plan to kill a thread, it should catch the TreadAbortExcep tion so
that it can do any neccesary cleanup.
2. Does the IIS ASP ScriptTimeout have any effect?
Yes, on ASP pages. Not on ASP.NET pages.
3. With httpRuntime execTimeout set to 10secs, if I put an infinite
loop in an ASP.NET page, should the behaviour be that it shows a
timeout after ~10secs and the page execution on the server is killed?
Yes.
4. Given the default values above, what should these be changed to for
best performance?
The timeouts are intended to protect the server from code that perform
poorly. If you have performance problems, the problems are in the code,
not in the timeout settings.
Thanks for the clarifications and I hope this can clear up any
confusion for a lot of folks too.
--
Göran Andersson
_____
http://www.guffa.com
Jul 14 '07 #2
Thanks Göran! Can you also shed some light on the issue below?

ExhibitA:

protected void Page_Load(objec t sender, EventArgs e)
{
Thread.Sleep(10 0000);

}
ExhibitB:

protected void Page_Load(objec t sender, EventArgs e)
{
WebService.Serv ice ws = new WebService.Serv ice();
ws.Timeout = 150000;
ws.HelloWorld() ;
}
In both cases, the httpRuntime.exe cutionTimeout is set to 20 seconds.
For CaseA, it times out as expected, for CaseB, the page continues to
load for 150 seconds until the web service call times out. Is this
normal?

Jul 16 '07 #3

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

Similar topics

1
7149
by: Fortepianissimo | last post by:
I've tried using socket.setdefaulttimeout(timeout) to set the default timeout to 'timeout' for all sockets. The part that's not clear to me, is that if this will affect socket.gethostbyname(). In my observation the timeout setting did not affect the DNS lookup. It might be my misunderstanding of the semantics here: would
7
4162
by: Racer X | last post by:
I have a simple form connecting to an Access database where users log in, fill out the form, and submit. Everything works fine. However, sometimes it takes a user 20 minutes or more to fill out the form. When the user then hits "submit" he is given the login page instead of the response page I have built in. If the user fills the form out in less than 20 minutes or so, it works fine. I have Session.Timeout=720 (2 hours) but this...
5
11106
by: harborboy76 | last post by:
Hi all, First of all, just want to let you know that I'm coming from Informix background, and we just recently migrated to DB2. It's been a great new learning experience. For the time being, I have some questions regarding LOCK TIMEOUT and its compatibility with LOCK MODE WAIT in INFOMIX. Last week, I just found out that the following statement was complied and built in Stored Procedure SET LOCK MODE TO WAIT 5;
0
3264
by: walter | last post by:
I think I'm a bit confused by all these timeout settings. Here I found 1. IIS --configuration--option--asp script timeout 2. SoapHttpClientProtocol.Timeout 3. <httpruntime executionTimeout= ..> 4. Session timeout 5. I recall someone said aspnet_wp.exe will be recycled also after certain time For me I think : 1 is only for asp, not asp.net ; 2 is for webservice client
1
3141
by: Sebitti | last post by:
I'm getting timeout error in my client application (asp.net client) when I call a web service that is taking some time (2 - 3 minutes). How can I configure the timeout limit? Current configuration, these settings doesn't seem to have any affect: Web.config <sessionState timeout="20"/> IIS 5 configuration, ASP Script timeout = 6000 seconds. BR Johanna Turku
20
3786
by: Simon Says | last post by:
Hi, I've a login page in which after authenticating it via the Oracle DB, I will stored the user information into the Session. However, when the Session timeout occurs, all of the user information will be lost. I've tried doing a Reponse.Redirect call back to my login page whenever I detected the Session is null, but I kept getting the exception saying "... Redirect not all in Page Callback".
6
7833
by: ChrisC | last post by:
We have a case where we want to attempt to do some processing, but if the records are currently locked, we'd like to avoid processing (for now, and move on to something else until the records are unlocked). The problem is: how do we manage this? If there was a way to check if the record was locked, that would be ideal (i.e., ask, its locked, do something else). Alternatively, if we could do a modification/locking action, and the
1
6007
by: jobs | last post by:
Re: Troubleshooting Timeout expired. All pooled connections were in use and max pool size was reached. New webservers. win2003. IIS6. asp.net 2.0/ sql server 2005 and Oracle 9i through a 64 bit Oracle client. Everything working fine until this. I started getting these errors as the new website activity started to heat up. Timeout expired. The timeout period elapsed prior to obtaining a
0
1260
by: gnewsgroup | last post by:
I think I understand the difference between forms authentication timeout and the sessionstate timeout. That said, they are giving me headache. I have a simple test application using Forms authentication. In my web.config I have: <authentication mode="Forms"> <forms loginUrl="Default.aspx" protection="All" timeout="2"
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.