2009/9/14 Bret Taylor <[email protected]>: > > I just checked in change to Tornado that enables you to run any WSGI- > compatible framework on Tornado's HTTP server. You can find it in a > class called WSGIContainer in wsgi.py: > > http://github.com/facebook/tornado/blob/master/tornado/wsgi.py#L188 > > You will have to check out Tornado from github to get the change; it > is not yet included in the tarball distribution. > > I have tested with web.py, but I have not tested extensively, and > certainly not with extremely involved applications. If any web.py > users/devs are interested, would love for you to try it out with a > more involved web.py app and let me know what issues you find so I can > fix them.
Bret, There is one issue with this implementation. web.py uses thread-local for storing request parameters. Since tornado is single-threaded, there is a chance of data corruption. I have implemented a wsgiserver for tornado and socket-local as replacement of thread-local. http://github.com/anandology/tornado/blob/master/tornado/wsgiserver.py There were some changes to ioloop to support socket-local. http://github.com/anandology/tornado/commit/927f889b7dd1129c1d1ef92ce6c8ad71af091cee I have posted this in python-tornado mailing list too. Looks like you didn't notice that. Anand --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
