473,383 Members | 1,958 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,383 software developers and data experts.

Dealing with script timeout

hi guys,
i was wondering how you deal with script timeouts caused by huge file
uploads. Lets say I have a script timeout of 2 minutes and the user
uploads a file which takes more than this ...
Whats the best way to inform the user about this issue rather than
throwing the script timeout error.
What approaches do you use for this....

Mar 29 '07 #1
8 3500
michal wrote:
hi guys,
i was wondering how you deal with script timeouts caused by huge file
uploads. Lets say I have a script timeout of 2 minutes and the user
uploads a file which takes more than this ...
Whats the best way to inform the user about this issue rather than
throwing the script timeout error.
What approaches do you use for this....
Ummmm ... increase the script timeout on the page that does the upload?
Search www.aspfaq.com for "timeout"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 29 '07 #2
ya i know that i could increase the script timeout but this seems not
a solution to me. because if i increase it to lets say 20 minutes and
then someone comes with an even bigger file (or slow connection) which
takes longer to upload then i have the same problem. and i am thrown
back to the start in increasing it again and again ...
i checkd aspfaq but they have no approaches for this problem.
do you have any other ideas?

Mar 29 '07 #3
Q - I have to drive my car 100 miles, but I keep running out of gas because
I only keep up to 3 gallons of gas in my car, which gets 20 mpg. What can I
do?

A - Put 5 gallons of gas in your car.

Q - That won't work. What if I have to drive 120 miles some other time, or
140 miles? I'd have to keep putting more gas in the car.

A - Sell your car and ride the bus.

Bob Lehmann

"michal" <mg****@gmail.comwrote in message
news:11********************@l77g2000hsb.googlegrou ps.com...
ya i know that i could increase the script timeout but this seems not
a solution to me. because if i increase it to lets say 20 minutes and
then someone comes with an even bigger file (or slow connection) which
takes longer to upload then i have the same problem. and i am thrown
back to the start in increasing it again and again ...
i checkd aspfaq but they have no approaches for this problem.
do you have any other ideas?

Mar 29 '07 #4
:)
so i am gonna buy a bus, just tell me where i can get one for my
problem ;)

Mar 30 '07 #5

"michal" <mg****@gmail.comwrote in message
news:11**********************@r56g2000hsd.googlegr oups.com...
hi guys,
i was wondering how you deal with script timeouts caused by huge file
uploads. Lets say I have a script timeout of 2 minutes and the user
uploads a file which takes more than this ...
Whats the best way to inform the user about this issue rather than
throwing the script timeout error.
What approaches do you use for this....
What's the maximum amount of time you are willing to put up with a user
trying to upload a file into your asp page?

Set your script timeout to that.

Mar 30 '07 #6
yeah i know i can do this... so there is no real approach to tell the
user about the error?
oh i think i could catch all errors and check if the timeout error
happend. if this is the case i show a user friendly message...

On Mar 30, 1:36 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
"michal" <mga...@gmail.comwrote in message

news:11**********************@r56g2000hsd.googlegr oups.com...
hi guys,
i was wondering how you deal with script timeouts caused by huge file
uploads. Lets say I have a script timeout of 2 minutes and the user
uploads a file which takes more than this ...
Whats the best way to inform the user about this issue rather than
throwing the script timeout error.
What approaches do you use for this....

What's the maximum amount of time you are willing to put up with a user
trying to upload a file into your asp page?

Set your script timeout to that.

Mar 31 '07 #7

"michal" <mg****@gmail.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.com...
yeah i know i can do this... so there is no real approach to tell the
user about the error?
oh i think i could catch all errors and check if the timeout error
happend. if this is the case i show a user friendly message...
Do you mean a custom 500.100 error page?

Mar 31 '07 #8
no i dont really need it because i should be able to do it with
on error resume next... have to try it the next time @ work.

On Mar 31, 9:46 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
"michal" <mga...@gmail.comwrote in message

news:11**********************@p15g2000hsd.googlegr oups.com...
yeah i know i can do this... so there is no real approach to tell the
user about the error?
oh i think i could catch all errors and check if the timeout error
happend. if this is the case i show a user friendly message...

Do you mean a custom 500.100 error page?

Apr 1 '07 #9

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

Similar topics

0
by: John Silver | last post by:
I have a perl script running on machine A, a web server. A visitor completes certain pieces of data and these are compiled into two emails, one addressed to the visitor and copied to the site...
8
by: Mathieu Blais | last post by:
Hi, I need to capture the Script timeout error if that is possible. I know I can increase the timeout value in the server settings or in the scripts itself but I really want to make sure that no...
6
by: Randy Weber | last post by:
I occasionally am getting a script timeout while using an ASP database connection. Everything I read suggests that I can change the Server.ScriptTimeout to address this, but I was unable to find...
0
by: SPD | last post by:
I've been researching this issue with little luck. Here's the situation: We have a few users on slow dialup connections who are posting data from forms. Frequently, they get script timeout...
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
11
by: www.MessageMazes.com | last post by:
I sometimes get this error after about 60 seconds of "waiting for mazes.com" (but when the page works, it usually loads in less than 12 seconds). > Active Server Pages error 'ASP 0113' > Script...
0
by: Frederic Wenzel | last post by:
I wrote a script on Linux that uses pyserial to read status messages from a serial line using readlines(). For now, it just displays what it gets on stdout: 17:42 | 0005 | 02 | | 5 |Rack...
15
by: Mikhail Kovalev | last post by:
Fatal error: Maximum execution time of 3600 seconds exceeded in z:\home \localhost\www\somefile.php on line 138 php.ini setting fixes default max execution time at 30 sec, In the script itself I...
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
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
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.