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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.