[EMAIL PROTECTED] wrote:

One of my forms initiates a script that logs into a remote server
(authentication) and grabs a file from it.

This can slow down the app as CherryPy blocks on that action.

Is there some way to run it asynchronously or somehow avoid blocking to
speed up app?

Sidestepping any 'real' solution to the problem, one way might be spawn
a background thread that does the file download, while the controller
serves up "please wait..." pages with a 5-second meta-refresh as long
as the file doesn't exist.

--
Ben Sizer


--~--~---------~--~----~------------~-------~--~----~
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