Compress ajaxterm redraws with gzip, to reduce latency
authorQuentin Smith <quentin@mit.edu>
Thu, 13 Aug 2009 02:08:25 +0000 (22:08 -0400)
committerQuentin Smith <quentin@mit.edu>
Thu, 13 Aug 2009 02:08:25 +0000 (22:08 -0400)
svn path=/package_branches/invirt-web/ajaxterm-rebased/; revision=2754

code/main.py

index 77646c9..c18cd9f 100755 (executable)
@@ -407,6 +407,7 @@ console will suffer artifacts.
             return d
 
         @cherrypy.expose
+        @cherrypy.tools.gzip()
         def at(self, machine_id, k=None, c=0, force=0):
             machine = validation.Validate(cherrypy.request.login, cherrypy.request.state, machine_id=machine_id).machine
             if machine_id in self.atsessions: