SoFunction
Updated on 2025-04-08

How to handle timeout events?

How to handle timeout events?


1
IISSet execution time for a dead-cycle execution process (default is90Seconds) Timeout Event:
<%=true%>
<body><html>
<%
DO
  counter=counter+1
  counter & "<br>"
 
LOOP
%>
</body></html>

2, custom time. Use the program to set the timeout event timeout period:
<%
=true
=20
%>
<body><html>
<%
DO
  counter=counter+1
  counter & "<br>"
 
LOOP
%>
</body></html>

 

3, interference timeout period. Capture timeout:
<%@ trANSACTION=Required%>
<%
=true
=20
%>
<html><body>
</body>
<%
DO
  counter=counter+1
  counter & "<br>"
LOOP

"
The script is finished!"
%>
</html>
<%
Sub OnTransactionAbort()
     
    "
oh,The script run timed out!"
end sub
%>

    4
, Bypass the timeout event:
<%@ trANSACTION=Required%>
<%
=true
=40
%>
<html><body>
</body>
<%
DO  UNTIL counter=400
  counter=counter+1
  counter & "<br>"
LOOP

"
The script is finished!"
%>
</html>
<%
Sub OnTransactionAbort()
     
    "
oh,The script run timed out!"
end sub
%>