Changeset 1914
- Timestamp:
- 08/30/08 18:03:54 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/admin/CherokeeManagement.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1913 r1914 1 2008-08-30 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * admin/CherokeeManagement.py (cherokee_build_info_has): This 4 function was randomly failing because a problem with the caching 5 structure. This patch fixing the problem. 6 1 7 2008-08-29 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 8 3 9 * cherokee/socket.h (OPENSSL_NO_TLSEXT): Fixes the twisted 4 OPENSSL_NO_TLSEXT define. It looks wrong to require a define i s10 OPENSSL_NO_TLSEXT define. It looks wrong to require a define in 5 11 case a feature is NOT present on the system. 6 12 cherokee/trunk/admin/CherokeeManagement.py
r1864 r1914 228 228 229 229 230 _built_in_list = [] 231 _built_in_list_done = False 232 230 _built_in_lists = {} 233 231 234 232 def cherokee_build_info_has (filter, module): 235 233 # Let's see whether it's built-in 236 global _built_in_list 237 global _built_in_list_done 238 239 if not _built_in_list_done: 240 _built_in_list_done = True 234 global _built_in_lists 235 236 if not _built_in_lists.has_key(filter): 237 _built_in_lists[filter] = {} 241 238 242 239 try: 243 240 f = os.popen ("%s -i" % (CHEROKEE_SRV_PATH)) 244 cont = f.read() 241 except: 242 print ("ERROR: Couldn't execute '%s -i'" % (CHEROKEE_SRV_PATH)) 243 return 244 245 cont = f.read() 246 247 try: 245 248 f.close() 246 except: 247 pass 249 except: pass 248 250 249 251 try: … … 252 254 if l.startswith(filter_string): 253 255 line = l.replace (filter_string, "") 256 _built_in_lists[filter] = line.split(" ") 254 257 break 255 _built_in_list = line.split(" ")256 258 except: 257 259 pass 258 260 259 return module in _built_in_list 261 return module in _built_in_lists[filter] 260 262 261 263 def cherokee_has_plugin (module):