svn path=/trunk/packages/invirt-vnc-server/; revision=1403
* 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
import time
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):
import get_port