FSX/momoko — pull request #38 by Bart-Jellema (2013-01-06 04:37:46+00:00)
Title: Replace IOLoop.update_handler with remove_handler and add_handler

Using IOLoop.update_handler was causing issues with Exception handling in tornado.gen in the host application to the extend that the errors were returned on the wrong RequestHandler. Even other code errors. I assume it has something to do with the StackContext. add_handler creates a new StackContext, but update_handler doesn't.