[Zope] script execution timeout?

2000-10-03 Thread Júlio Dinis Silva
Hi all, Is there a place to define a script execution timeout? I've been using urllib and there is no way to kill a urllib.open if its taking too long. Does zope has that implemented? Best Regards, Júlio Dinis Silva _ Get Yo

Re: [Zope] script execution timeout?

2000-10-03 Thread seb
> Is there a place to define a script execution timeout? not in the urllib module. Try setting an alarm using the signal module, wrapping the GET request in a try clause, and then setting the alarm to 0 in the finally clause. seb ___ Zope maillist

Re: [Zope] script execution timeout?

2000-10-03 Thread Dieter Maurer
seb writes: > > Is there a place to define a script execution timeout? > Try setting an alarm using the signal module, wrapping the GET request > in a try clause, and then setting the alarm to 0 in the finally clause. Be very careful with signals of any kind inside Zope: I had to patch ZServ

Re: [Zope] script execution timeout?

2000-10-03 Thread Dieter Maurer
=?ISO-8859-1?Q?J=FAlio?= Dinis Silva writes: > Is there a place to define a script execution timeout? I do not think so. > I've been using urllib and there is no way to kill a urllib.open > if its taking too long. Does zope has that implemented? There is a patch to Python's "httplib" providing