Changeset 1403 for trunk


Ignore:
Timestamp:
Oct 28, 2008, 10:53:32 PM (16 years ago)
Author:
broder
Message:

File reads are cheap. Don't cache the VNC token key in the server code

Location:
trunk/packages/invirt-vnc-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-vnc-server/debian/changelog

    r1400 r1403  
    33  * Cleanup the init script to use /lib/init/std-init.sh
    44  * Generate the SSL certificates at install-time
     5  * File reads are cheap. Especially when the file is short. Don't cache
     6    the token key
    57
    6  -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 21:19:14 -0400
     8 -- Evan Broder <broder@mit.edu>  Tue, 28 Oct 2008 22:48:24 -0400
    79
    810invirt-vnc-server (0.0.1) unstable; urgency=low
  • trunk/packages/invirt-vnc-server/python/vnc/extauth.py

    r1388 r1403  
    2121
    2222def getTokenKey():
    23     token_key = file('/etc/invirt/secrets/vnc-key').read().strip()
    24     while True:
    25         yield token_key
    26 getTokenKey = getTokenKey().next
     23    return file('/etc/invirt/secrets/vnc-key').read().strip()
    2724
    2825def getPort(name, auth_data):
Note: See TracChangeset for help on using the changeset viewer.