Hi all,

In my situation, I need to fetch some data from a remote server to
publish the web just like fetch data from a db.

It's an asynchronoused process because the turbogear process has to
wait until the response to come back, and it might take hundreds of
miliseconds, serveral seconds, or it might never come back.

The strait forward way to do it was to have some tight loop in the
code,  but not sure if that would block the entire web site?

So, my question is,

how to make an asynchronous process synchronized without having any
tight loops?

Or how did they made it possible to make db operation just like a
function call without considering any asynchronoused problem?

BTW,

Where could I save the socket which would be used to communicate with
the remote server?  It will be awful to create it each time I need it?


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