Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2004, 12:58 PM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server times out

Hi,

In an ASP page, I have to execute a function but the server times out before the end. I don't want to change the server timeout. I would like to know if it's possible to tell IIS to not wait after the result of that function.

Thanks
 
Old September 14th, 2004, 07:11 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

There are two types of IIS time outs
session = 20 mins
script time out = 90 seconds

firstly:
;;;I would like to know if it's possible to tell IIS to not wait after the result of that function

I dont belive there is. The script time out is the one you are talking about. If you have a need to bump this up, your function needs looking at - It should not have a run time of more than 90 seconds.

The setting to adjust this is in the properties of your default web site / homeDirectory / config / options. You should not bump this up to make up for a slow function, post your function - there are plently of techo's here who would tweak it for you.

Wind is your friend
Matt
 
Old September 16th, 2004, 09:18 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The code is an Export. It is optimized to the maximum. It takes 11 minutes on my computer but when I try it with the web, I got a page that the server is timed out and that mean it takes more than 20 minutes to execute.
 
Old September 16th, 2004, 08:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote: I got a page that the server is timed out and that mean it takes more than 20 minutes to execute.
I believe, that should be 90 secs not the 20 mins that you are talking about. When you say server times out, that should be SCRIPTTIMEOUT, not the session timing out.

_________________________
- Vijay G
Strive for Perfection
 
Old September 17th, 2004, 02:35 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Chi74

;;;;The code is an Export. It is optimized to the maximum.

What is the function doing a virtual half marathon? May I suggest you research the difference between a session timout and a script time out.

IMO no script should take more than 90 seconds 'RUN TIME'

Go on, post the function.



Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow load times with VS local Web Server stevemilton ASP.NET 2.0 Basics 12 June 29th, 2008 11:07 AM
Access Help: Using Between criteria with times KristenV Access 5 November 8th, 2007 12:32 PM
why does this code run two times? hertendreef Pro VB Databases 1 March 16th, 2007 07:24 AM
script times out dazednconfused Beginning PHP 12 August 27th, 2003 07:32 AM
Local times pow1983 Forum and Wrox.com Feedback 4 June 9th, 2003 11:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.