in reply to Re^2: Problem with timeout
in thread Problem with timeout

No. You need to reduce your script to (say) 20 lines that still reproduce the problem. Do this by removing parts and replacing them by constants. If you find that removing a part removes the problem, that part likely is relevant to the problem.