Index: trunk/packages/invirt-vnc-server/debian/changelog
===================================================================
--- trunk/packages/invirt-vnc-server/debian/changelog	(revision 1402)
+++ trunk/packages/invirt-vnc-server/debian/changelog	(revision 1403)
@@ -3,6 +3,8 @@
   * Cleanup the init script to use /lib/init/std-init.sh
   * Generate the SSL certificates at install-time
+  * File reads are cheap. Especially when the file is short. Don't cache
+    the token key
 
- -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 21:19:14 -0400
+ -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 22:48:24 -0400
 
 invirt-vnc-server (0.0.1) unstable; urgency=low
Index: trunk/packages/invirt-vnc-server/python/vnc/extauth.py
===================================================================
--- trunk/packages/invirt-vnc-server/python/vnc/extauth.py	(revision 1402)
+++ trunk/packages/invirt-vnc-server/python/vnc/extauth.py	(revision 1403)
@@ -21,8 +21,5 @@
 
 def getTokenKey():
-    token_key = file('/etc/invirt/secrets/vnc-key').read().strip()
-    while True:
-        yield token_key
-getTokenKey = getTokenKey().next
+    return file('/etc/invirt/secrets/vnc-key').read().strip()
 
 def getPort(name, auth_data):
