Changeset 1305
- Timestamp:
- 06/06/09 14:12:14 (10 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
-
setup.py (modified) (1 diff)
-
windmill/server/https.py (modified) (2 diffs)
-
windmill/server/thread2.py (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup.py
r1297 r1305 42 42 two_five_dependencies = [ 'simplejson >= 1.7.1', 43 43 ] 44 two_four_dependencies = ['uuid' ]44 two_four_dependencies = ['uuid', 'ctypes'] 45 45 46 46 if not sys.version.startswith('2.6'): -
trunk/windmill/server/https.py
r1295 r1305 375 375 HTTPServer.__init__(self, address, handler) 376 376 self.setup_environ() 377 self.threads = [] 377 378 378 379 daemon_threads = True … … 422 423 except socket.error: 423 424 pass 425 426 for t in [t for t in self.threads if t.isAlive()]: 427 t.terminate() 428 429 def process_request(self, request, client_address): 430 """Start a new thread to process the request.""" 431 import thread2 432 t = thread2.Thread(target = self.process_request_thread, 433 args = (request, client_address)) 434 if self.daemon_threads: 435 t.setDaemon (1) 436 t.start() 437 self.threads.append(t) 424 438 425 439 def handle_error(self, request, client_address):
