comparison mercurial/hgweb/server.py @ 2644:56e98084e040

Make hgweb threads into daemon threads. This fixes the problem that an interrupted hg serve will not terminate until the next request has been received.
author Brendan Cully <brendan@kublai.com>
date Thu, 20 Jul 2006 21:58:25 -0700
parents c4325f0a9b91
children 345bac2bc4ec
comparison
equal deleted inserted replaced
2643:3b53fa20dda8 2644:56e98084e040
196 self.repo = repo 196 self.repo = repo
197 self.webdir_conf = webdir_conf 197 self.webdir_conf = webdir_conf
198 self.webdirmaker = hgwebdir 198 self.webdirmaker = hgwebdir
199 self.repoviewmaker = hgweb 199 self.repoviewmaker = hgweb
200 self.reqmaker = wsgiapplication(self.make_handler) 200 self.reqmaker = wsgiapplication(self.make_handler)
201 self.daemon_threads = True
201 202
202 def make_handler(self): 203 def make_handler(self):
203 if self.webdir_conf: 204 if self.webdir_conf:
204 hgwebobj = self.webdirmaker(self.webdir_conf) 205 hgwebobj = self.webdirmaker(self.webdir_conf)
205 elif self.repo is not None: 206 elif self.repo is not None: