Hi,

Seriously, no one does such a thing in TG? My main problem is that
> some of the recipes do the timing out of a function buy launching it
> in a separate thread but if there is have load on the application
> server too many threads might be launched. I'm also not sure if the
> other recipes are advisable in a TG environment.


I've not heard of anyone doing this with TG, although it does sound like a
good idea for robustness. A decorator that launches the function in a
separate thread will add a lot of overhead. Probably the best way to do it
would be to add the functionality to CherryPy.

I'm not bothered about this for my sites though, as one of my design
principles is to avoid ever allowing a user to cause a long running DB
query.

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to