Mercurial > templog
diff web/settings.py @ 258:03e540c3ec24
fix server side long polling
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 09 Jun 2015 23:29:11 +0800 |
parents | 0a1b642e3086 |
children | 87c20b8c5472 |
line wrap: on
line diff
--- a/web/settings.py Tue Jun 09 21:22:10 2015 +0800 +++ b/web/settings.py Tue Jun 09 23:29:11 2015 +0800 @@ -2,6 +2,9 @@ import fcntl import hashlib +import binascii +import os + class Settings(object): RAND_SIZE = 15 # 120 bits @@ -22,7 +25,7 @@ self.epoch = None self.tag = None - self.update(self, None, 'startepoch') + self.update(None, 'startepoch') def wait(self, epoch_tag = None, timeout = None): """ returns false if the timeout was hit """