On Jun 28, 2006, at 11:47 AM, Arnar Birgisson wrote:
> Right now, TG fires up a thread that updates the visit tracking stuff. > > Would it be possible to do something similar for Comet stuff? The idea > would be that at startup, TG fires up a thread that runs a twised > reactor. That reactor would listen on a different port than CP for > "Comet" requests. This is an interesting idea, but Twisted is pretty heavyweight, and as Karl said, there are really a lot of cases that could be handled by polling rather than traditional "Comet" long-lived requests. That being said, if you wanted to implement this, it would be possible to do using the standard library's asyncore module, plus a little hunk of code from medusa that allows you to wake up the asyncore loop from another thread. This would be significantly more lightweight than the alternative. If you need any pointers on how to do this, just let me know. -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

