Sullivan WxPyQtKinter wrote:
> Hi,there. Sometimes a python CGI script tries to output great
> quantities of HTML responce or in other cases, it just falls into a
> dead loop. How could my client close that CGI script running on the
> server?

Generally speaking, remote users don't have control over your local
processes, and if there is some problem with that local process that
causes it to loop indefinitely, the chance that it could react
appropriately to the browser is slim anyway. So the answer is to fix
the problem with the CGI program.

> In addition, how could I configure that if a CGI program do not finish
> its task in 20sec or so, it will be automatically terminated?

I suppose you could run it in a background thread or process,
terminating it after the allotted time has expired, but I suspect you'd
be better off addressing whatever is causing the problem in the first
place. What sort of CGI program is this?

-- 
Ben Sizer

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to