Dealing with script timeout

Dealing with script timeout

am 29.03.2007 22:20:46 von Michal

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....

Re: Dealing with script timeout

am 29.03.2007 22:38:26 von reb01501

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.

Re: Dealing with script timeout

am 29.03.2007 23:32:10 von Michal

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?

Re: Dealing with script timeout

am 30.03.2007 01:00:15 von Bob Lehmann

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" wrote in message
news:1175203928.724815.4850@l77g2000hsb.googlegroups.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?
>

Re: Dealing with script timeout

am 30.03.2007 10:05:05 von Michal

:)
so i am gonna buy a bus, just tell me where i can get one for my
problem ;)

Re: Dealing with script timeout

am 30.03.2007 13:36:46 von Anthony Jones

"michal" wrote in message
news:1175199646.266987.212390@r56g2000hsd.googlegroups.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.

Re: Dealing with script timeout

am 31.03.2007 20:31:36 von Michal

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" wrote:
> "michal" wrote in message
>
> news:1175199646.266987.212390@r56g2000hsd.googlegroups.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.

Re: Dealing with script timeout

am 31.03.2007 21:46:08 von Anthony Jones

"michal" wrote in message
news:1175365896.905468.297370@p15g2000hsd.googlegroups.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?

Re: Dealing with script timeout

am 01.04.2007 11:52:02 von Michal

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" wrote:
> "michal" wrote in message
>
> news:1175365896.905468.297370@p15g2000hsd.googlegroups.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?