Forums

This topic is locked

Question about Server.ScriptTimeout

Posted 25 Jul 2002 14:57:42
1
has voted
25 Jul 2002 14:57:42 LiToZ LiToZ posted:
well, i have a mailing list using AspEmail, and my mailing list have 4000 Users.. so whenver i try to send, it just gives me servr timeout after sending to 25 or 30 users !!
so what is the EXACT line of the server script timeout i should use ? and how many seconds will be fine for 4000 users ? please notify me with this info and where should i put that line ... Thanks

Replies

Replied 25 Jul 2002 20:03:53
25 Jul 2002 20:03:53 aegis kleais replied:
This is a little hard to say, as that depending on how your mail servers react to sending this amount of mail, they may have slower and longer timeouts. If possible, have an ASP Sub called everytime one piece of mail is sent. And have it just reset the Server.ScriptTimeout back to something high again. Hopefully that would keep it active until it is finished with all the email

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])
Replied 25 Jul 2002 20:06:53
25 Jul 2002 20:06:53 LiToZ LiToZ replied:
thx for that info man, but i really dont know how to make that sub and make it reset the server timeout !! can you write me an example code please ?
Replied 26 Jul 2002 00:29:25
26 Jul 2002 00:29:25 aegis kleais replied:
Well, you'd just need to have an include to an asp file:

<!-- #include file="includes/file.asp"-->

and in it, a sub like:

Sub FixTimeOut
Server.ScriptTimeout = 4000
End Sub

Then everytime in your code when you're sending mail, add the line:

<% Call FixTimeOut %>

And it should reset the server script timeout back to 4000 after each email. Of course, this won't help much if you're mail takes 4000+ seconds to send each one, but believe me, if that's the case, you got more problems then just a script timeout.

Aegis Kleais
New Media Web Developer
(DWMX : IIS5.1 : SQL2K : WXP : ASP[VB/JS])

Reply to this topic